From 6043c806393be9919480bb4fc4f1a82b71369f92 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 12 Jan 2007 20:26:39 +0000 Subject: style fix: remove tabs --- src/http/modules/ngx_http_ssi_filter_module.c | 2 +- src/http/modules/ngx_http_upstream_ip_hash_module.c | 16 ++++++++-------- src/http/modules/perl/ngx_http_perl_module.c | 2 +- 3 files changed, 10 insertions(+), 10 deletions(-) (limited to 'src/http/modules') diff --git a/src/http/modules/ngx_http_ssi_filter_module.c b/src/http/modules/ngx_http_ssi_filter_module.c index 1ee34db00..c8e11bf20 100644 --- a/src/http/modules/ngx_http_ssi_filter_module.c +++ b/src/http/modules/ngx_http_ssi_filter_module.c @@ -2381,7 +2381,7 @@ ngx_http_ssi_if(ngx_http_request_t *r, ngx_http_ssi_ctx_t *ctx, noregex = 0; flags = NGX_HTTP_SSI_ADD_ZERO; last--; - p++; + p++; } else { noregex = 1; diff --git a/src/http/modules/ngx_http_upstream_ip_hash_module.c b/src/http/modules/ngx_http_upstream_ip_hash_module.c index 1de019e05..e0cf8afc1 100644 --- a/src/http/modules/ngx_http_upstream_ip_hash_module.c +++ b/src/http/modules/ngx_http_upstream_ip_hash_module.c @@ -171,14 +171,14 @@ ngx_http_upstream_get_ip_hash_peer(ngx_peer_connection_t *pc, void *data) if (!peer->down) { - if (peer->max_fails == 0 || peer->fails < peer->max_fails) { - break; - } - - if (now - peer->accessed > peer->fail_timeout) { - peer->fails = 0; - break; - } + if (peer->max_fails == 0 || peer->fails < peer->max_fails) { + break; + } + + if (now - peer->accessed > peer->fail_timeout) { + peer->fails = 0; + break; + } } else { iphp->rrp.tried[n] |= m; diff --git a/src/http/modules/perl/ngx_http_perl_module.c b/src/http/modules/perl/ngx_http_perl_module.c index 29296b6a2..a33a9f7ee 100644 --- a/src/http/modules/perl/ngx_http_perl_module.c +++ b/src/http/modules/perl/ngx_http_perl_module.c @@ -199,7 +199,7 @@ ngx_http_perl_handle_request(ngx_http_request_t *r) ctx = ngx_pcalloc(r->pool, sizeof(ngx_http_perl_ctx_t)); if (ctx == NULL) { ngx_http_finalize_request(r, NGX_ERROR); - return; + return; } ngx_http_set_ctx(r, ctx, ngx_http_perl_module); -- cgit