aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_file.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2005-02-24 12:29:09 +0000
committerIgor Sysoev <igor@sysoev.ru>2005-02-24 12:29:09 +0000
commit4a71559d9bf433baf01c459c7daba58f99805b32 (patch)
treef414a54fc1624eaddd446bbe9f0c1370e38df87e /src/core/ngx_file.c
parent4dc57ba98fb7526efe4564f4d352c52024c47535 (diff)
downloadnginx-4a71559d9bf433baf01c459c7daba58f99805b32.tar.gz
nginx-4a71559d9bf433baf01c459c7daba58f99805b32.zip
nginx-0.1.22-RELEASE importrelease-0.1.22
*) 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.
Diffstat (limited to 'src/core/ngx_file.c')
-rw-r--r--src/core/ngx_file.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/core/ngx_file.c b/src/core/ngx_file.c
index e06b8ca2d..514479cd2 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_int_t
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_init_temp_number()
}
-ngx_atomic_int_t
+ngx_atomic_uint_t
ngx_next_temp_number(ngx_uint_t collision)
{
if (collision) {