]> git.kaiwu.me - nginx.git/commitdiff
Use "void" for functions with empty parameter list.
authorSergey Kandaurov <pluknet@nginx.com>
Thu, 23 May 2013 11:47:58 +0000 (15:47 +0400)
committerSergey Kandaurov <pluknet@nginx.com>
Thu, 23 May 2013 11:47:58 +0000 (15:47 +0400)
src/http/ngx_http_spdy.c
src/http/ngx_http_spdy.h
src/os/unix/ngx_darwin_init.c
src/os/unix/ngx_freebsd_init.c
src/os/unix/ngx_freebsd_rfork_thread.c
src/os/unix/ngx_freebsd_rfork_thread.h

index 3febc23e9727b37d738fd944dc9efbd25f3ec11a..acadaf23202e4f6d1c85ea2c6f1b7ab40dd69d70 100644 (file)
@@ -2176,7 +2176,7 @@ ngx_http_spdy_handle_request_header(ngx_http_request_t *r)
 
 
 void
-ngx_http_spdy_request_headers_init()
+ngx_http_spdy_request_headers_init(void)
 {
     ngx_uint_t                       i;
     ngx_http_spdy_request_header_t  *h;
index 4294e3d5078e3f32f6b604ae01f11c5fa6087b32..63014066d12417ee13c0453efd34f292b334ba07 100644 (file)
@@ -186,7 +186,7 @@ ngx_http_spdy_queue_blocked_frame(ngx_http_spdy_connection_t *sc,
 
 
 void ngx_http_spdy_init(ngx_event_t *rev);
-void ngx_http_spdy_request_headers_init();
+void ngx_http_spdy_request_headers_init(void);
 
 ngx_int_t ngx_http_spdy_read_request_body(ngx_http_request_t *r,
     ngx_http_client_body_handler_pt post_handler);
index e3cc5fe3eec79799c878abf7c70ce5a9196ca6ab..1bc7520cade1c4d13432f3a896fdaa9f95b4bf02 100644 (file)
@@ -59,7 +59,7 @@ sysctl_t sysctls[] = {
 
 
 void
-ngx_debug_init()
+ngx_debug_init(void)
 {
 #if (NGX_DEBUG_MALLOC)
 
index aeeceaf25656419b8b2d2aa547cd3d25c1238669..c4c12dd741cb3ad2d336d48a87d008eb6d50529f 100644 (file)
@@ -72,7 +72,7 @@ sysctl_t sysctls[] = {
 
 
 void
-ngx_debug_init()
+ngx_debug_init(void)
 {
 #if (NGX_DEBUG_MALLOC)
 
index 530ec4a53bb821fc68b13b518ef12ed125caa95e..e92f9a9fdd7a5eb9fe9e4661f2454f0204fd1a18 100644 (file)
@@ -271,7 +271,7 @@ ngx_init_threads(int n, size_t size, ngx_cycle_t *cycle)
 
 
 ngx_tid_t
-ngx_thread_self()
+ngx_thread_self(void)
 {
     ngx_int_t  tid;
 
index 2c238f79ca6f49d1d2e16bd786c4c1751cc06e46..ff160449dad61b1bd408f156326d69594c26202c 100644 (file)
@@ -57,7 +57,7 @@ extern size_t   ngx_thread_stack_size;
 
 
 static ngx_inline ngx_int_t
-ngx_gettid()
+ngx_gettid(void)
 {
     char  *sp;
 
@@ -83,7 +83,7 @@ ngx_gettid()
 }
 
 
-ngx_tid_t ngx_thread_self();
+ngx_tid_t ngx_thread_self(void);
 
 
 typedef ngx_uint_t               ngx_tls_key_t;