From f463abc5082dcc3e11da45bfe7e04dd90b3ac426 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 25 Feb 2013 16:06:38 +0400 Subject: [PATCH] Fixed function prototypes --- shared_alloc_win32.c | 6 +++--- zend_shared_alloc.c | 2 +- zend_shared_alloc.h | 8 ++++---- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/shared_alloc_win32.c b/shared_alloc_win32.c index 819ef5cc3c..2b6548743b 100644 --- a/shared_alloc_win32.c +++ b/shared_alloc_win32.c @@ -85,7 +85,7 @@ static char *create_name_with_username(char *name) return newname; } -static char *get_mmap_base_file() +static char *get_mmap_base_file(void) { static char windir[MAXPATHLEN+UNLEN + 3 + sizeof("\\\\@")]; char uname[UNLEN + 1]; @@ -109,7 +109,7 @@ void zend_shared_alloc_create_lock(void) ReleaseMutex(memory_mutex); } -void zend_shared_alloc_lock_win32() +void zend_shared_alloc_lock_win32(void) { DWORD waitRes = WaitForSingleObject(memory_mutex, INFINITE); @@ -118,7 +118,7 @@ void zend_shared_alloc_lock_win32() } } -void zend_shared_alloc_unlock_win32(TSRMLS_D) +void zend_shared_alloc_unlock_win32(void) { ReleaseMutex(memory_mutex); } diff --git a/zend_shared_alloc.c b/zend_shared_alloc.c index 3e867d1361..b6040cf0ad 100644 --- a/zend_shared_alloc.c +++ b/zend_shared_alloc.c @@ -462,7 +462,7 @@ void zend_shared_alloc_restore_state(void) ZSMMG(wasted_shared_memory) = 0; } -const char *zend_accel_get_shared_model() +const char *zend_accel_get_shared_model(void) { return g_shared_model; } diff --git a/zend_shared_alloc.h b/zend_shared_alloc.h index 12df673cf3..77ef723fbb 100644 --- a/zend_shared_alloc.h +++ b/zend_shared_alloc.h @@ -160,7 +160,7 @@ size_t zend_shared_alloc_get_free_memory(void); void zend_shared_alloc_save_state(void); void zend_shared_alloc_restore_state(void); size_t zend_shared_alloc_get_largest_free_block(void); -const char *zend_accel_get_shared_model(); +const char *zend_accel_get_shared_model(void); /* memory write protection */ void zend_accel_shared_protect(int mode TSRMLS_DC); @@ -179,9 +179,9 @@ extern zend_shared_memory_handlers zend_alloc_posix_handlers; #ifdef ZEND_WIN32 extern zend_shared_memory_handlers zend_alloc_win32_handlers; -void zend_shared_alloc_create_lock(); -void zend_shared_alloc_lock_win32(); -void zend_shared_alloc_unlock_win32(); +void zend_shared_alloc_create_lock(void); +void zend_shared_alloc_lock_win32(void); +void zend_shared_alloc_unlock_win32(void); #endif #endif /* ZEND_SHARED_ALLOC_H */ -- 2.50.1