nginx-0.1.22-RELEASE import
*) Bugfix: the ngx_http_stub_status_module showed incorrect handled
connections statistics if the proxying or FastCGI server were used.
*) Bugfix: the installation paths were incorrectly quoted on Linux and
Solaris; the bug had appeared in 0.1.21.
diff --git a/src/core/ngx_file.c b/src/core/ngx_file.c
index e06b8ca..514479c 100644
--- a/src/core/ngx_file.c
+++ b/src/core/ngx_file.c
@@ -8,8 +8,8 @@
#include <ngx_core.h>
-static ngx_atomic_int_t ngx_temp_number;
-static ngx_atomic_int_t ngx_random;
+static ngx_atomic_uint_t ngx_temp_number;
+static ngx_atomic_uint_t ngx_random;
ssize_t
@@ -38,8 +38,8 @@
ngx_create_temp_file(ngx_file_t *file, ngx_path_t *path, ngx_pool_t *pool,
int persistent)
{
- ngx_err_t err;
- ngx_atomic_int_t n;
+ ngx_err_t err;
+ ngx_atomic_uint_t n;
file->name.len = path->name.len + 1 + path->len + NGX_ATOMIC_T_LEN;
@@ -176,7 +176,7 @@
}
-ngx_atomic_int_t
+ngx_atomic_uint_t
ngx_next_temp_number(ngx_uint_t collision)
{
if (collision) {