summaryrefslogtreecommitdiffhomepage
path: root/src/core/ngx_cycle.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-12-10 12:09:51 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-12-10 12:09:51 +0000
commit86ef6aaa6b574f2015a5094670b7123c425a63af (patch)
treee0b78dcc48085162b29fbff2c0aeb7e5bd75c654 /src/core/ngx_cycle.c
parente60049418525a5e605765aa2b8f9c6796eb390a6 (diff)
downloadnginx-86ef6aaa6b574f2015a5094670b7123c425a63af.tar.gz
nginx-86ef6aaa6b574f2015a5094670b7123c425a63af.tar.bz2
move condition declarations inside blocks where they are used
Diffstat (limited to 'src/core/ngx_cycle.c')
-rw-r--r--src/core/ngx_cycle.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/core/ngx_cycle.c b/src/core/ngx_cycle.c
index f900a2824..f0e86eb94 100644
--- a/src/core/ngx_cycle.c
+++ b/src/core/ngx_cycle.c
@@ -938,9 +938,6 @@ ngx_reopen_files(ngx_cycle_t *cycle, ngx_uid_t user)
ngx_uint_t i;
ngx_list_part_t *part;
ngx_open_file_t *file;
-#if !(NGX_WIN32)
- ngx_file_info_t fi;
-#endif
part = &cycle->open_files.part;
file = part->elts;
@@ -996,6 +993,7 @@ ngx_reopen_files(ngx_cycle_t *cycle, ngx_uid_t user)
}
#else
if (user != (ngx_uid_t) NGX_CONF_UNSET_UINT) {
+ ngx_file_info_t fi;
if (ngx_file_info((const char *) file[i].name.data, &fi) == -1) {
ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_errno,