[PATCH 1 of 2] Core: remove unused NGX_SIG_ATOMIC_T_SIZE

Piotr Sikora piotrsikora at google.com
Tue Jun 28 01:30:02 UTC 2016


# HG changeset patch
# User Piotr Sikora <piotrsikora at google.com>
# Date 1467064809 25200
#      Mon Jun 27 15:00:09 2016 -0700
# Node ID 1059f59c44039020843ced5bca39f165c322bacb
# Parent  d452cb27639f714bc43b7f3ede417e3e7f8efdd6
Core: remove unused NGX_SIG_ATOMIC_T_SIZE.

Unused since 9c2f3ed7a247 (0.3.3).

Signed-off-by: Piotr Sikora <piotrsikora at google.com>

diff -r d452cb27639f -r 1059f59c4403 auto/unix
--- a/auto/unix
+++ b/auto/unix
@@ -602,8 +602,6 @@ ngx_type="uint32_t"; ngx_types="u_int32_
 ngx_type="uint64_t"; ngx_types="u_int64_t"; . auto/types/typedef
 
 ngx_type="sig_atomic_t"; ngx_types="int"; . auto/types/typedef
-. auto/types/sizeof
-ngx_param=NGX_SIG_ATOMIC_T_SIZE; ngx_value=$ngx_size; . auto/types/value
 
 ngx_type="socklen_t"; ngx_types="int"; . auto/types/typedef
 
diff -r d452cb27639f -r 1059f59c4403 src/core/ngx_module.h
--- a/src/core/ngx_module.h
+++ b/src/core/ngx_module.h
@@ -20,7 +20,6 @@
 
 #define NGX_MODULE_SIGNATURE_0                                                \
     ngx_value(NGX_PTR_SIZE) ","                                               \
-    ngx_value(NGX_SIG_ATOMIC_T_SIZE) ","                                      \
     ngx_value(NGX_TIME_T_SIZE) ","
 
 #if (NGX_HAVE_KQUEUE)
diff -r d452cb27639f -r 1059f59c4403 src/os/win32/ngx_win32_config.h
--- a/src/os/win32/ngx_win32_config.h
+++ b/src/os/win32/ngx_win32_config.h
@@ -217,7 +217,6 @@ typedef int                 sig_atomic_t
 
 #define NGX_OFF_T_LEN           (sizeof("-9223372036854775807") - 1)
 #define NGX_MAX_OFF_T_VALUE     9223372036854775807
-#define NGX_SIG_ATOMIC_T_SIZE   4
 
 
 #define NGX_HAVE_LITTLE_ENDIAN  1



More information about the nginx-devel mailing list