[nginx] Use "void" for functions with empty parameter list.
Sergey Kandaurov
pluknet at nginx.com
Thu May 23 11:49:24 UTC 2013
details: http://hg.nginx.org/nginx/rev/15a7deeaa19a
branches:
changeset: 5225:15a7deeaa19a
user: Sergey Kandaurov <pluknet at nginx.com>
date: Thu May 23 15:47:58 2013 +0400
description:
Use "void" for functions with empty parameter list.
diffstat:
src/http/ngx_http_spdy.c | 2 +-
src/http/ngx_http_spdy.h | 2 +-
src/os/unix/ngx_darwin_init.c | 2 +-
src/os/unix/ngx_freebsd_init.c | 2 +-
src/os/unix/ngx_freebsd_rfork_thread.c | 2 +-
src/os/unix/ngx_freebsd_rfork_thread.h | 4 ++--
6 files changed, 7 insertions(+), 7 deletions(-)
diffs (81 lines):
diff -r 09d7faaef16f -r 15a7deeaa19a src/http/ngx_http_spdy.c
--- a/src/http/ngx_http_spdy.c Thu May 23 10:23:21 2013 +0400
+++ b/src/http/ngx_http_spdy.c Thu May 23 15:47:58 2013 +0400
@@ -2176,7 +2176,7 @@ ngx_http_spdy_handle_request_header(ngx_
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;
diff -r 09d7faaef16f -r 15a7deeaa19a src/http/ngx_http_spdy.h
--- a/src/http/ngx_http_spdy.h Thu May 23 10:23:21 2013 +0400
+++ b/src/http/ngx_http_spdy.h Thu May 23 15:47:58 2013 +0400
@@ -186,7 +186,7 @@ ngx_http_spdy_queue_blocked_frame(ngx_ht
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);
diff -r 09d7faaef16f -r 15a7deeaa19a src/os/unix/ngx_darwin_init.c
--- a/src/os/unix/ngx_darwin_init.c Thu May 23 10:23:21 2013 +0400
+++ b/src/os/unix/ngx_darwin_init.c Thu May 23 15:47:58 2013 +0400
@@ -59,7 +59,7 @@ sysctl_t sysctls[] = {
void
-ngx_debug_init()
+ngx_debug_init(void)
{
#if (NGX_DEBUG_MALLOC)
diff -r 09d7faaef16f -r 15a7deeaa19a src/os/unix/ngx_freebsd_init.c
--- a/src/os/unix/ngx_freebsd_init.c Thu May 23 10:23:21 2013 +0400
+++ b/src/os/unix/ngx_freebsd_init.c Thu May 23 15:47:58 2013 +0400
@@ -72,7 +72,7 @@ sysctl_t sysctls[] = {
void
-ngx_debug_init()
+ngx_debug_init(void)
{
#if (NGX_DEBUG_MALLOC)
diff -r 09d7faaef16f -r 15a7deeaa19a src/os/unix/ngx_freebsd_rfork_thread.c
--- a/src/os/unix/ngx_freebsd_rfork_thread.c Thu May 23 10:23:21 2013 +0400
+++ b/src/os/unix/ngx_freebsd_rfork_thread.c Thu May 23 15:47:58 2013 +0400
@@ -271,7 +271,7 @@ ngx_init_threads(int n, size_t size, ngx
ngx_tid_t
-ngx_thread_self()
+ngx_thread_self(void)
{
ngx_int_t tid;
diff -r 09d7faaef16f -r 15a7deeaa19a src/os/unix/ngx_freebsd_rfork_thread.h
--- a/src/os/unix/ngx_freebsd_rfork_thread.h Thu May 23 10:23:21 2013 +0400
+++ b/src/os/unix/ngx_freebsd_rfork_thread.h Thu May 23 15:47:58 2013 +0400
@@ -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;
More information about the nginx-devel
mailing list