Commit:    f463abc5082dcc3e11da45bfe7e04dd90b3ac426
Author:    Dmitry Stogov <dmi...@zend.com>         Mon, 25 Feb 2013 16:06:38 
+0400
Parents:   56baf17a17d102108a4f66f2b4ccafcd7db5468b
Branches:  PHP-5.5 master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=f463abc5082dcc3e11da45bfe7e04dd90b3ac426

Log:
Fixed function prototypes

Changed paths:
  M  shared_alloc_win32.c
  M  zend_shared_alloc.c
  M  zend_shared_alloc.h


Diff:
diff --git a/shared_alloc_win32.c b/shared_alloc_win32.c
index 819ef5c..2b65487 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 3e867d1..b6040cf 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 12df673..77ef723 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 */


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to