File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ PHP_FUNCTION(sem_get)
266266/* }}} */
267267
268268/* {{{ php_sysvsem_semop */
269- static void php_sysvsem_semop (INTERNAL_FUNCTION_PARAMETERS , int acquire )
269+ static void php_sysvsem_semop (INTERNAL_FUNCTION_PARAMETERS , const bool acquire )
270270{
271271 zval * arg_id ;
272272 bool nowait = 0 ;
@@ -311,14 +311,14 @@ static void php_sysvsem_semop(INTERNAL_FUNCTION_PARAMETERS, int acquire)
311311/* {{{ Acquires the semaphore with the given id, blocking if necessary */
312312PHP_FUNCTION (sem_acquire )
313313{
314- php_sysvsem_semop (INTERNAL_FUNCTION_PARAM_PASSTHRU , 1 );
314+ php_sysvsem_semop (INTERNAL_FUNCTION_PARAM_PASSTHRU , true );
315315}
316316/* }}} */
317317
318318/* {{{ Releases the semaphore with the given id */
319319PHP_FUNCTION (sem_release )
320320{
321- php_sysvsem_semop (INTERNAL_FUNCTION_PARAM_PASSTHRU , 0 );
321+ php_sysvsem_semop (INTERNAL_FUNCTION_PARAM_PASSTHRU , false );
322322}
323323/* }}} */
324324
You can’t perform that action at this time.
0 commit comments