diff options
author | twosee <twose@qq.com> | 2020-06-06 20:13:38 +0800 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-06-07 10:36:50 +0200 |
commit | 1b85e749c7e892db727806a92f4e215a8538ba9e (patch) | |
tree | c6f8b947d544635d6ace6517f4e02cecf31489fa /TSRM | |
parent | 68fdad82c9a3d1d1fc03975b7b91fdb940c621e0 (diff) | |
download | php-git-1b85e749c7e892db727806a92f4e215a8538ba9e.tar.gz |
Fix warning of strict-prototypes
Closes GH-5673.
Diffstat (limited to 'TSRM')
-rw-r--r-- | TSRM/TSRM.c | 4 | ||||
-rw-r--r-- | TSRM/TSRM.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/TSRM/TSRM.c b/TSRM/TSRM.c index cd41b078a7..1074c6b251 100644 --- a/TSRM/TSRM.c +++ b/TSRM/TSRM.c @@ -228,11 +228,11 @@ TSRM_API void tsrm_shutdown(void) /* {{{ */ /* environ lock api */ -TSRM_API void tsrm_env_lock() { +TSRM_API void tsrm_env_lock(void) { tsrm_mutex_lock(tsrm_env_mutex); } -TSRM_API void tsrm_env_unlock() { +TSRM_API void tsrm_env_unlock(void) { tsrm_mutex_unlock(tsrm_env_mutex); } /* }}} */ diff --git a/TSRM/TSRM.h b/TSRM/TSRM.h index 75553edabc..661c873292 100644 --- a/TSRM/TSRM.h +++ b/TSRM/TSRM.h @@ -83,8 +83,8 @@ TSRM_API int tsrm_startup(int expected_threads, int expected_resources, int debu TSRM_API void tsrm_shutdown(void); /* environ lock API */ -TSRM_API void tsrm_env_lock(); -TSRM_API void tsrm_env_unlock(); +TSRM_API void tsrm_env_lock(void); +TSRM_API void tsrm_env_unlock(void); /* allocates a new thread-safe-resource id */ TSRM_API ts_rsrc_id ts_allocate_id(ts_rsrc_id *rsrc_id, size_t size, ts_allocate_ctor ctor, ts_allocate_dtor dtor); |