comparison src/http/ngx_http.c @ 1385:4612daca9dc1

style fix
author Igor Sysoev <igor@sysoev.ru>
date Sun, 12 Aug 2007 09:00:56 +0000
parents 7443fbe0b013
children cb8b30ef3e7e
comparison
equal deleted inserted replaced
1380:b590a528fd41 1385:4612daca9dc1
930 { 930 {
931 ngx_http_conf_in_addr_t *in_addr; 931 ngx_http_conf_in_addr_t *in_addr;
932 932
933 if (in_port->addrs.elts == NULL) { 933 if (in_port->addrs.elts == NULL) {
934 if (ngx_array_init(&in_port->addrs, cf->temp_pool, 4, 934 if (ngx_array_init(&in_port->addrs, cf->temp_pool, 4,
935 sizeof(ngx_http_conf_in_addr_t)) != NGX_OK) 935 sizeof(ngx_http_conf_in_addr_t))
936 != NGX_OK)
936 { 937 {
937 return NGX_ERROR; 938 return NGX_ERROR;
938 } 939 }
939 } 940 }
940 941
979 ngx_uint_t i, n; 980 ngx_uint_t i, n;
980 ngx_http_server_name_t *server_names, *name; 981 ngx_http_server_name_t *server_names, *name;
981 982
982 if (in_addr->names.elts == NULL) { 983 if (in_addr->names.elts == NULL) {
983 if (ngx_array_init(&in_addr->names, cf->temp_pool, 4, 984 if (ngx_array_init(&in_addr->names, cf->temp_pool, 4,
984 sizeof(ngx_http_server_name_t)) != NGX_OK) 985 sizeof(ngx_http_server_name_t))
986 != NGX_OK)
985 { 987 {
986 return NGX_ERROR; 988 return NGX_ERROR;
987 } 989 }
988 } 990 }
989 991