[nginx] Resolver: fixed indentation.

Ruslan Ermilov ru at nginx.com
Fri Dec 13 16:54:44 UTC 2013


details:   http://hg.nginx.org/nginx/rev/b43b02bb54db
branches:  
changeset: 5474:b43b02bb54db
user:      Ruslan Ermilov <ru at nginx.com>
date:      Fri Dec 13 19:22:44 2013 +0400
description:
Resolver: fixed indentation.

diffstat:

 src/core/ngx_resolver.c |  48 ++++++++++++++++++++++++------------------------
 1 files changed, 24 insertions(+), 24 deletions(-)

diffs (79 lines):

diff -r d39ef821d03e -r b43b02bb54db src/core/ngx_resolver.c
--- a/src/core/ngx_resolver.c	Fri Dec 06 14:30:27 2013 +0400
+++ b/src/core/ngx_resolver.c	Fri Dec 13 19:22:44 2013 +0400
@@ -1235,11 +1235,11 @@ ngx_resolver_process_a(ngx_resolver_t *r
         /* unlock name mutex */
 
         while (next) {
-             ctx = next;
-             ctx->state = code;
-             next = ctx->next;
-
-             ctx->handler(ctx);
+            ctx = next;
+            ctx->state = code;
+            next = ctx->next;
+
+            ctx->handler(ctx);
         }
 
         return;
@@ -1425,14 +1425,14 @@ ngx_resolver_process_a(ngx_resolver_t *r
         /* unlock name mutex */
 
         while (next) {
-             ctx = next;
-             ctx->state = NGX_OK;
-             ctx->naddrs = naddrs;
-             ctx->addrs = (naddrs == 1) ? &ctx->addr : addrs;
-             ctx->addr = addr;
-             next = ctx->next;
-
-             ctx->handler(ctx);
+            ctx = next;
+            ctx->state = NGX_OK;
+            ctx->naddrs = naddrs;
+            ctx->addrs = (naddrs == 1) ? &ctx->addr : addrs;
+            ctx->addr = addr;
+            next = ctx->next;
+
+            ctx->handler(ctx);
         }
 
         if (naddrs > 1) {
@@ -1587,11 +1587,11 @@ ngx_resolver_process_ptr(ngx_resolver_t 
         /* unlock addr mutex */
 
         while (next) {
-             ctx = next;
-             ctx->state = code;
-             next = ctx->next;
-
-             ctx->handler(ctx);
+            ctx = next;
+            ctx->state = code;
+            next = ctx->next;
+
+            ctx->handler(ctx);
         }
 
         return;
@@ -1673,12 +1673,12 @@ ngx_resolver_process_ptr(ngx_resolver_t 
     /* unlock addr mutex */
 
     while (next) {
-         ctx = next;
-         ctx->state = NGX_OK;
-         ctx->name = name;
-         next = ctx->next;
-
-         ctx->handler(ctx);
+        ctx = next;
+        ctx->state = NGX_OK;
+        ctx->name = name;
+        next = ctx->next;
+
+        ctx->handler(ctx);
     }
 
     ngx_resolver_free(r, name.data);



More information about the nginx-devel mailing list