]> git.kaiwu.me - nginx.git/commitdiff
Fixed return type of ngx_strerror_init().
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 18 Jun 2012 14:12:03 +0000 (14:12 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 18 Jun 2012 14:12:03 +0000 (14:12 +0000)
src/os/unix/ngx_errno.c
src/os/unix/ngx_errno.h
src/os/win32/ngx_errno.c
src/os/win32/ngx_errno.h

index 75176c49a4734dd33c7ad8380a51ee48864dc454..e787b2377edfe89ba5dbae819b4749697c57b5c5 100644 (file)
@@ -42,7 +42,7 @@ ngx_strerror(ngx_err_t err, u_char *errstr, size_t size)
 }
 
 
-ngx_uint_t
+ngx_int_t
 ngx_strerror_init(void)
 {
     char       *msg;
index 2912dea0441f2292561997f2fb0c281440460bec..125087e781d7c12e700477f499bbf7c5b35dac08 100644 (file)
@@ -69,7 +69,7 @@ typedef int               ngx_err_t;
 
 
 u_char *ngx_strerror(ngx_err_t err, u_char *errstr, size_t size);
-ngx_uint_t ngx_strerror_init(void);
+ngx_int_t ngx_strerror_init(void);
 
 
 #endif /* _NGX_ERRNO_H_INCLUDED_ */
index f6d947a754fb5e4a02f6d8b59f89f41f749ba338..b732bf4b19dd2d585f4b645fb0782384ebb78c82 100644 (file)
@@ -53,7 +53,7 @@ ngx_strerror(ngx_err_t err, u_char *errstr, size_t size)
 }
 
 
-ngx_uint_t
+ngx_int_t
 ngx_strerror_init(void)
 {
     return NGX_OK;
index 5b11a65b0f568b25a45750298072399a54156ed7..090ba1b530efe38806fba59ba074751fe509af3a 100644 (file)
@@ -59,7 +59,7 @@ typedef DWORD                      ngx_err_t;
 
 
 u_char *ngx_strerror(ngx_err_t err, u_char *errstr, size_t size);
-ngx_uint_t ngx_strerror_init(void);
+ngx_int_t ngx_strerror_init(void);
 
 
 #endif /* _NGX_ERRNO_H_INCLUDED_ */