Mercurial > hg > nginx
comparison src/http/ngx_http.c @ 2688:9bcda0da8d36
style fix
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Wed, 08 Apr 2009 19:51:30 +0000 |
parents | 1fb5e7e05a4e |
children | 6caf687a831f |
comparison
equal
deleted
inserted
replaced
2687:5190c5dc3486 | 2688:9bcda0da8d36 |
---|---|
1371 | 1371 |
1372 static ngx_int_t | 1372 static ngx_int_t |
1373 ngx_http_optimize_servers(ngx_conf_t *cf, ngx_http_core_main_conf_t *cmcf, | 1373 ngx_http_optimize_servers(ngx_conf_t *cf, ngx_http_core_main_conf_t *cmcf, |
1374 ngx_array_t *ports) | 1374 ngx_array_t *ports) |
1375 { | 1375 { |
1376 ngx_uint_t s, p, a; | 1376 ngx_uint_t s, p, a; |
1377 ngx_http_conf_port_t *port; | 1377 ngx_http_conf_port_t *port; |
1378 ngx_http_conf_addr_t *addr; | 1378 ngx_http_conf_addr_t *addr; |
1379 ngx_http_server_name_t *name; | 1379 ngx_http_server_name_t *name; |
1380 | 1380 |
1381 port = ports->elts; | 1381 port = ports->elts; |
1382 for (p = 0; p < ports->nelts; p++) { | 1382 for (p = 0; p < ports->nelts; p++) { |
1383 | 1383 |
1384 ngx_sort(port[p].addrs.elts, (size_t) port[p].addrs.nelts, | 1384 ngx_sort(port[p].addrs.elts, (size_t) port[p].addrs.nelts, |
1423 | 1423 |
1424 static ngx_int_t | 1424 static ngx_int_t |
1425 ngx_http_server_names(ngx_conf_t *cf, ngx_http_core_main_conf_t *cmcf, | 1425 ngx_http_server_names(ngx_conf_t *cf, ngx_http_core_main_conf_t *cmcf, |
1426 ngx_http_conf_addr_t *addr) | 1426 ngx_http_conf_addr_t *addr) |
1427 { | 1427 { |
1428 ngx_int_t rc; | 1428 ngx_int_t rc; |
1429 ngx_uint_t s; | 1429 ngx_uint_t s; |
1430 ngx_hash_init_t hash; | 1430 ngx_hash_init_t hash; |
1431 ngx_http_server_name_t *name; | 1431 ngx_hash_keys_arrays_t ha; |
1432 ngx_hash_keys_arrays_t ha; | 1432 ngx_http_server_name_t *name; |
1433 #if (NGX_PCRE) | 1433 #if (NGX_PCRE) |
1434 ngx_uint_t regex, i; | 1434 ngx_uint_t regex, i; |
1435 | 1435 |
1436 regex = 0; | 1436 regex = 0; |
1437 #endif | 1437 #endif |
1438 | 1438 |
1439 ngx_memzero(&ha, sizeof(ngx_hash_keys_arrays_t)); | 1439 ngx_memzero(&ha, sizeof(ngx_hash_keys_arrays_t)); |