diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2019-04-11 10:40:54 +0200 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2019-04-11 10:40:54 +0200 |
commit | b213f13a2621ec553beec06d3e2f163c1e7e2282 (patch) | |
tree | 645bb04df0fa9c0d003420c2eb3c0957cbd34c0f /TSRM/TSRM.c | |
parent | d207c9a78a973d153dd17fd2d80b301d07fc9509 (diff) | |
download | php-git-b213f13a2621ec553beec06d3e2f163c1e7e2282.tar.gz |
Make tsrm_env_lock() void
We're not checking the return value and the NTS version of this
generates warnings. If we want to handle lock failures, we should
do a hard abort inside tsrm_env_lock() itself.
Diffstat (limited to 'TSRM/TSRM.c')
-rw-r--r-- | TSRM/TSRM.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/TSRM/TSRM.c b/TSRM/TSRM.c index d70c09d2b5..34080eed96 100644 --- a/TSRM/TSRM.c +++ b/TSRM/TSRM.c @@ -244,12 +244,12 @@ TSRM_API void tsrm_shutdown(void) /* {{{ */ /* environ lock api */ -TSRM_API int tsrm_env_lock() { - return tsrm_mutex_lock(tsrm_env_mutex); +TSRM_API void tsrm_env_lock() { + tsrm_mutex_lock(tsrm_env_mutex); } -TSRM_API int tsrm_env_unlock() { - return tsrm_mutex_unlock(tsrm_env_mutex); +TSRM_API void tsrm_env_unlock() { + tsrm_mutex_unlock(tsrm_env_mutex); } /* }}} */ /* enlarge the arrays for the already active threads */ |