Mercurial > hg > nginx
comparison src/core/ngx_cycle.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 | efb7d84db340 |
children | 45db41a0591c |
comparison
equal
deleted
inserted
replaced
1703:43747661804d | 1704:e584e946e198 |
---|---|
936 { | 936 { |
937 ngx_fd_t fd; | 937 ngx_fd_t fd; |
938 ngx_uint_t i; | 938 ngx_uint_t i; |
939 ngx_list_part_t *part; | 939 ngx_list_part_t *part; |
940 ngx_open_file_t *file; | 940 ngx_open_file_t *file; |
941 #if !(NGX_WIN32) | |
942 ngx_file_info_t fi; | |
943 #endif | |
944 | 941 |
945 part = &cycle->open_files.part; | 942 part = &cycle->open_files.part; |
946 file = part->elts; | 943 file = part->elts; |
947 | 944 |
948 for (i = 0; /* void */ ; i++) { | 945 for (i = 0; /* void */ ; i++) { |
994 | 991 |
995 continue; | 992 continue; |
996 } | 993 } |
997 #else | 994 #else |
998 if (user != (ngx_uid_t) NGX_CONF_UNSET_UINT) { | 995 if (user != (ngx_uid_t) NGX_CONF_UNSET_UINT) { |
996 ngx_file_info_t fi; | |
999 | 997 |
1000 if (ngx_file_info((const char *) file[i].name.data, &fi) == -1) { | 998 if (ngx_file_info((const char *) file[i].name.data, &fi) == -1) { |
1001 ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_errno, | 999 ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_errno, |
1002 ngx_file_info_n " \"%s\" failed", | 1000 ngx_file_info_n " \"%s\" failed", |
1003 file[i].name.data); | 1001 file[i].name.data); |