]> granicus.if.org Git - php/commitdiff
Fixed function prototypes
authorDmitry Stogov <dmitry@zend.com>
Mon, 25 Feb 2013 12:06:38 +0000 (16:06 +0400)
committerDmitry Stogov <dmitry@zend.com>
Mon, 25 Feb 2013 12:06:38 +0000 (16:06 +0400)
shared_alloc_win32.c
zend_shared_alloc.c
zend_shared_alloc.h

index 819ef5cc3cd92bbac1e1776c1ad0e848d43c4f00..2b6548743b5678fac3310ba234c90ec4fdcba990 100644 (file)
@@ -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);
 }
index 3e867d136132dee93a8a208fcab5efa8bd581191..b6040cf0ad858bebba87d32402fa5bd85c95d825 100644 (file)
@@ -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;
 }
index 12df673cf3ce921ac02f7825f987adcb49df0d54..77ef723fbba75bf9e1533e983adb0d85315993df 100644 (file)
@@ -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 */