Mercurial > hg > nginx-quic
comparison src/core/ngx_resolver.c @ 5474:b43b02bb54db
Resolver: fixed indentation.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Fri, 13 Dec 2013 19:22:44 +0400 |
parents | ab493c60d9ff |
children | 07dd5bd222ac |
comparison
equal
deleted
inserted
replaced
5473:d39ef821d03e | 5474:b43b02bb54db |
---|---|
1233 ngx_resolver_free_node(r, rn); | 1233 ngx_resolver_free_node(r, rn); |
1234 | 1234 |
1235 /* unlock name mutex */ | 1235 /* unlock name mutex */ |
1236 | 1236 |
1237 while (next) { | 1237 while (next) { |
1238 ctx = next; | 1238 ctx = next; |
1239 ctx->state = code; | 1239 ctx->state = code; |
1240 next = ctx->next; | 1240 next = ctx->next; |
1241 | 1241 |
1242 ctx->handler(ctx); | 1242 ctx->handler(ctx); |
1243 } | 1243 } |
1244 | 1244 |
1245 return; | 1245 return; |
1246 } | 1246 } |
1247 | 1247 |
1423 rn->waiting = NULL; | 1423 rn->waiting = NULL; |
1424 | 1424 |
1425 /* unlock name mutex */ | 1425 /* unlock name mutex */ |
1426 | 1426 |
1427 while (next) { | 1427 while (next) { |
1428 ctx = next; | 1428 ctx = next; |
1429 ctx->state = NGX_OK; | 1429 ctx->state = NGX_OK; |
1430 ctx->naddrs = naddrs; | 1430 ctx->naddrs = naddrs; |
1431 ctx->addrs = (naddrs == 1) ? &ctx->addr : addrs; | 1431 ctx->addrs = (naddrs == 1) ? &ctx->addr : addrs; |
1432 ctx->addr = addr; | 1432 ctx->addr = addr; |
1433 next = ctx->next; | 1433 next = ctx->next; |
1434 | 1434 |
1435 ctx->handler(ctx); | 1435 ctx->handler(ctx); |
1436 } | 1436 } |
1437 | 1437 |
1438 if (naddrs > 1) { | 1438 if (naddrs > 1) { |
1439 ngx_resolver_free(r, addrs); | 1439 ngx_resolver_free(r, addrs); |
1440 } | 1440 } |
1585 ngx_resolver_free_node(r, rn); | 1585 ngx_resolver_free_node(r, rn); |
1586 | 1586 |
1587 /* unlock addr mutex */ | 1587 /* unlock addr mutex */ |
1588 | 1588 |
1589 while (next) { | 1589 while (next) { |
1590 ctx = next; | 1590 ctx = next; |
1591 ctx->state = code; | 1591 ctx->state = code; |
1592 next = ctx->next; | 1592 next = ctx->next; |
1593 | 1593 |
1594 ctx->handler(ctx); | 1594 ctx->handler(ctx); |
1595 } | 1595 } |
1596 | 1596 |
1597 return; | 1597 return; |
1598 } | 1598 } |
1599 | 1599 |
1671 rn->waiting = NULL; | 1671 rn->waiting = NULL; |
1672 | 1672 |
1673 /* unlock addr mutex */ | 1673 /* unlock addr mutex */ |
1674 | 1674 |
1675 while (next) { | 1675 while (next) { |
1676 ctx = next; | 1676 ctx = next; |
1677 ctx->state = NGX_OK; | 1677 ctx->state = NGX_OK; |
1678 ctx->name = name; | 1678 ctx->name = name; |
1679 next = ctx->next; | 1679 next = ctx->next; |
1680 | 1680 |
1681 ctx->handler(ctx); | 1681 ctx->handler(ctx); |
1682 } | 1682 } |
1683 | 1683 |
1684 ngx_resolver_free(r, name.data); | 1684 ngx_resolver_free(r, name.data); |
1685 | 1685 |
1686 return; | 1686 return; |