mirror of
https://github.com/php/php-src.git
synced 2026-04-04 14:42:49 +02:00
Fixed function prototypes
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user