]> git.kaiwu.me - nginx.git/commitdiff
Fixed compilation with -Wmissing-prototypes.
authorSergey Kandaurov <pluknet@nginx.com>
Mon, 14 Mar 2016 16:23:23 +0000 (19:23 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Mon, 14 Mar 2016 16:23:23 +0000 (19:23 +0300)
src/core/ngx_module.c
src/core/ngx_module.h

index 2d81b3893b3fa2a5317d0c5100a0e8a2cf0379ba..3e3c50683cd327164c10cf4dcacf0decdc0eec84 100644 (file)
@@ -23,7 +23,7 @@ static ngx_uint_t  ngx_modules_n;
 
 
 ngx_int_t
-ngx_preinit_modules()
+ngx_preinit_modules(void)
 {
     ngx_uint_t  i;
 
index 3e74def298d7af8393e6b0ac24b9387b11a4031d..e911cb49c6b00d2ee80c2b3faed814462f7387fe 100644 (file)
@@ -288,7 +288,7 @@ typedef struct {
 } ngx_core_module_t;
 
 
-ngx_int_t ngx_preinit_modules();
+ngx_int_t ngx_preinit_modules(void);
 ngx_int_t ngx_cycle_modules(ngx_cycle_t *cycle);
 ngx_int_t ngx_init_modules(ngx_cycle_t *cycle);
 ngx_int_t ngx_count_modules(ngx_cycle_t *cycle, ngx_uint_t type);