From 86ef6aaa6b574f2015a5094670b7123c425a63af Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Mon, 10 Dec 2007 12:09:51 +0000 Subject: move condition declarations inside blocks where they are used --- src/os/unix/ngx_process_cycle.c | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) (limited to 'src/os/unix/ngx_process_cycle.c') diff --git a/src/os/unix/ngx_process_cycle.c b/src/os/unix/ngx_process_cycle.c index 631597ef4..aa95e81d9 100644 --- a/src/os/unix/ngx_process_cycle.c +++ b/src/os/unix/ngx_process_cycle.c @@ -687,17 +687,16 @@ ngx_worker_process_cycle(ngx_cycle_t *cycle, void *data) { ngx_uint_t i; ngx_connection_t *c; -#if (NGX_THREADS) - ngx_int_t n; - ngx_err_t err; - ngx_core_conf_t *ccf; -#endif ngx_worker_process_init(cycle, 1); ngx_setproctitle("worker process"); #if (NGX_THREADS) + { + ngx_int_t n; + ngx_err_t err; + ngx_core_conf_t *ccf; ccf = (ngx_core_conf_t *) ngx_get_conf(cycle->conf_ctx, ngx_core_module); @@ -736,7 +735,7 @@ ngx_worker_process_cycle(ngx_cycle_t *cycle, void *data) } } } - + } #endif for ( ;; ) { -- cgit