From 908fc9dcc46118f22c9ee840909f19dab98b0556 Mon Sep 17 00:00:00 2001 From: Dmitry Stogov Date: Mon, 18 Feb 2013 11:04:58 +0400 Subject: [PATCH] Fixed inconsistent start_accel_module() prototype and usage --- ZendAccelerator.c | 2 +- zend_accelerator_module.c | 2 +- zend_accelerator_module.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/ZendAccelerator.c b/ZendAccelerator.c index 20ee110b6d..5a0f1cef0a 100644 --- a/ZendAccelerator.c +++ b/ZendAccelerator.c @@ -2248,7 +2248,7 @@ static int accel_startup(zend_extension *extension) _setmaxstdio(2048); /* The default configuration is limited to 512 stdio files */ #endif - if (start_accel_module(0) == FAILURE) { + if (start_accel_module() == FAILURE) { accel_startup_ok = 0; zend_error(E_WARNING, ACCELERATOR_PRODUCT_NAME ": module registration failed!"); return FAILURE; diff --git a/zend_accelerator_module.c b/zend_accelerator_module.c index 299f318697..b39c52d842 100644 --- a/zend_accelerator_module.c +++ b/zend_accelerator_module.c @@ -402,7 +402,7 @@ static zend_module_entry accel_module_entry = { STANDARD_MODULE_PROPERTIES }; -int start_accel_module() +int start_accel_module(void) { return zend_startup_module(&accel_module_entry); } diff --git a/zend_accelerator_module.h b/zend_accelerator_module.h index 25ad4ae3fa..112ab0fc57 100644 --- a/zend_accelerator_module.h +++ b/zend_accelerator_module.h @@ -22,7 +22,7 @@ #ifndef ZEND_ACCELERAROR_MODULE_H #define ZEND_ACCELERATOR_MODULE_H -int start_accel_module(); +int start_accel_module(void); void zend_accel_override_file_functions(TSRMLS_D); #endif /* _ZEND_ACCELERATOR_MODULE_H */ -- 2.40.0