Skip to content

Commit 87d83d1

Browse files
committed
ext/sysvsem: use bool type instead of int
1 parent bac158c commit 87d83d1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

ext/sysvsem/sysvsem.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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, 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 */
312312
PHP_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 */
319319
PHP_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

0 commit comments

Comments
 (0)