mirror of
https://github.com/php/php-src.git
synced 2026-03-24 00:02:20 +01:00
ext/sysvsem: use bool type instead of int
This commit is contained in:
@@ -266,7 +266,7 @@ PHP_FUNCTION(sem_get)
|
||||
/* }}} */
|
||||
|
||||
/* {{{ php_sysvsem_semop */
|
||||
static void php_sysvsem_semop(INTERNAL_FUNCTION_PARAMETERS, int acquire)
|
||||
static void php_sysvsem_semop(INTERNAL_FUNCTION_PARAMETERS, bool acquire)
|
||||
{
|
||||
zval *arg_id;
|
||||
bool nowait = 0;
|
||||
@@ -311,14 +311,14 @@ static void php_sysvsem_semop(INTERNAL_FUNCTION_PARAMETERS, int acquire)
|
||||
/* {{{ Acquires the semaphore with the given id, blocking if necessary */
|
||||
PHP_FUNCTION(sem_acquire)
|
||||
{
|
||||
php_sysvsem_semop(INTERNAL_FUNCTION_PARAM_PASSTHRU, 1);
|
||||
php_sysvsem_semop(INTERNAL_FUNCTION_PARAM_PASSTHRU, true);
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
/* {{{ Releases the semaphore with the given id */
|
||||
PHP_FUNCTION(sem_release)
|
||||
{
|
||||
php_sysvsem_semop(INTERNAL_FUNCTION_PARAM_PASSTHRU, 0);
|
||||
php_sysvsem_semop(INTERNAL_FUNCTION_PARAM_PASSTHRU, false);
|
||||
}
|
||||
/* }}} */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user