Mercurial > hg > nginx-quic
diff src/core/ngx_garbage_collector.c @ 290:87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 16 Mar 2004 07:10:12 +0000 |
parents | 70e1c7d2b83d |
children | 54f76b0b8dca |
line wrap: on
line diff
--- a/src/core/ngx_garbage_collector.c +++ b/src/core/ngx_garbage_collector.c @@ -53,7 +53,7 @@ void garbage_collector() void stub_init(ngx_cycle_t *cycle) { - int i; + ngx_uint_t i; ngx_gc_t ctx; ngx_path_t **path; @@ -71,13 +71,17 @@ void stub_init(ngx_cycle_t *cycle) static int ngx_collect_garbage(ngx_gc_t *ctx, ngx_str_t *dname, int level) { int rc; - char *last; + u_char *last; size_t len; ngx_err_t err; ngx_str_t fname, buf; ngx_dir_t dir; buf.len = 0; +#if (NGX_SUPPRESS_WARN) + buf.data = NULL; + fname.data = NULL; +#endif ngx_log_debug2(NGX_LOG_DEBUG_CORE, ctx->log, 0, "gc dir \"%s\":%d", dname->data, dname->len);