aboutsummaryrefslogtreecommitdiff
path: root/src/os/unix
diff options
context:
space:
mode:
authorSergey Kandaurov <pluknet@nginx.com>2013-05-23 15:47:58 +0400
committerSergey Kandaurov <pluknet@nginx.com>2013-05-23 15:47:58 +0400
commit3be6cc9b2f85724c37d5cf5e9f71bbded656b9cd (patch)
tree166325240efef316493098ce447851bf485b32cd /src/os/unix
parentc4a044cc50e35b114095bfe744ba3fa0e6bfc5bd (diff)
downloadnginx-3be6cc9b2f85724c37d5cf5e9f71bbded656b9cd.tar.gz
nginx-3be6cc9b2f85724c37d5cf5e9f71bbded656b9cd.zip
Use "void" for functions with empty parameter list.
Diffstat (limited to 'src/os/unix')
-rw-r--r--src/os/unix/ngx_darwin_init.c2
-rw-r--r--src/os/unix/ngx_freebsd_init.c2
-rw-r--r--src/os/unix/ngx_freebsd_rfork_thread.c2
-rw-r--r--src/os/unix/ngx_freebsd_rfork_thread.h4
4 files changed, 5 insertions, 5 deletions
diff --git a/src/os/unix/ngx_darwin_init.c b/src/os/unix/ngx_darwin_init.c
index e3cc5fe3e..1bc7520ca 100644
--- a/src/os/unix/ngx_darwin_init.c
+++ b/src/os/unix/ngx_darwin_init.c
@@ -59,7 +59,7 @@ sysctl_t sysctls[] = {
void
-ngx_debug_init()
+ngx_debug_init(void)
{
#if (NGX_DEBUG_MALLOC)
diff --git a/src/os/unix/ngx_freebsd_init.c b/src/os/unix/ngx_freebsd_init.c
index aeeceaf25..c4c12dd74 100644
--- a/src/os/unix/ngx_freebsd_init.c
+++ b/src/os/unix/ngx_freebsd_init.c
@@ -72,7 +72,7 @@ sysctl_t sysctls[] = {
void
-ngx_debug_init()
+ngx_debug_init(void)
{
#if (NGX_DEBUG_MALLOC)
diff --git a/src/os/unix/ngx_freebsd_rfork_thread.c b/src/os/unix/ngx_freebsd_rfork_thread.c
index 530ec4a53..e92f9a9fd 100644
--- a/src/os/unix/ngx_freebsd_rfork_thread.c
+++ b/src/os/unix/ngx_freebsd_rfork_thread.c
@@ -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;
diff --git a/src/os/unix/ngx_freebsd_rfork_thread.h b/src/os/unix/ngx_freebsd_rfork_thread.h
index 2c238f79c..ff160449d 100644
--- a/src/os/unix/ngx_freebsd_rfork_thread.h
+++ b/src/os/unix/ngx_freebsd_rfork_thread.h
@@ -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;