Mercurial > hg > nginx
diff src/core/ngx_file.c @ 1704:e584e946e198
move condition declarations inside blocks where they are used
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 10 Dec 2007 12:09:51 +0000 |
parents | 8c4532a48b0a |
children | 442a791354d8 |
line wrap: on
line diff
--- a/src/core/ngx_file.c +++ b/src/core/ngx_file.c @@ -425,9 +425,6 @@ ngx_create_pathes(ngx_cycle_t *cycle, ng ngx_err_t err; ngx_uint_t i; ngx_path_t **path; -#if !(NGX_WIN32) - ngx_file_info_t fi; -#endif path = cycle->pathes.elts; for (i = 0; i < cycle->pathes.nelts; i++) { @@ -447,6 +444,8 @@ ngx_create_pathes(ngx_cycle_t *cycle, ng } #if !(NGX_WIN32) + { + ngx_file_info_t fi; if (ngx_file_info((const char *) path[i]->name.data, &fi) == -1) { ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_errno, @@ -474,7 +473,7 @@ ngx_create_pathes(ngx_cycle_t *cycle, ng return NGX_ERROR; } } - + } #endif }