# HG changeset patch # User Sergey Kandaurov # Date 1457972603 -10800 # Node ID 3600bbfb43e31adf322925831ec67419dc4f42ca # Parent 545b5e4d83b292a4cc106d7e661989a5afab064b Fixed compilation with -Wmissing-prototypes. diff --git a/src/core/ngx_module.c b/src/core/ngx_module.c --- a/src/core/ngx_module.c +++ b/src/core/ngx_module.c @@ -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; diff --git a/src/core/ngx_module.h b/src/core/ngx_module.h --- a/src/core/ngx_module.h +++ b/src/core/ngx_module.h @@ -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);