]> granicus.if.org Git - php/commitdiff
Fixed inconsistent start_accel_module() prototype and usage
authorDmitry Stogov <dmitry@zend.com>
Mon, 18 Feb 2013 07:04:58 +0000 (11:04 +0400)
committerDmitry Stogov <dmitry@zend.com>
Mon, 18 Feb 2013 07:04:58 +0000 (11:04 +0400)
ZendAccelerator.c
zend_accelerator_module.c
zend_accelerator_module.h

index 20ee110b6d4fee0d64e76aad3fd2ef950196b596..5a0f1cef0ae8d23a41cfe157049138ef78ebcb0e 100644 (file)
@@ -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;
index 299f31869779d9ab0696ff752993e988147da89b..b39c52d84267098a2c949e47ab94a8dc448174f5 100644 (file)
@@ -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);
 }
index 25ad4ae3fa88eaeec1cfaae2a67f2a88e294d143..112ab0fc57141f865518dfbbf0ace3c79546a01e 100644 (file)
@@ -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 */