Mercurial > hg > nginx-vendor-0-6
diff src/core/ngx_file.c @ 44:4989c3d25945 NGINX_0_1_22
nginx 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; bug appeared in 0.1.21.
author | Igor Sysoev <http://sysoev.ru> |
---|---|
date | Tue, 22 Feb 2005 00:00:00 +0300 |
parents | 41ccba1aba45 |
children | 6cfc63e68377 |
line wrap: on
line diff
--- 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) {