comparison src/http/ngx_http.c @ 2042:6389d4accacf

fix building without PCRE introduced in r2023
author Igor Sysoev <igor@sysoev.ru>
date Sat, 07 Jun 2008 12:08:38 +0000
parents 4d8140271204
children 2a92804f4109
comparison
equal deleted inserted replaced
2041:3f75a582a11e 2042:6389d4accacf
1298 static ngx_int_t 1298 static ngx_int_t
1299 ngx_http_optimize_servers(ngx_conf_t *cf, ngx_http_core_main_conf_t *cmcf, 1299 ngx_http_optimize_servers(ngx_conf_t *cf, ngx_http_core_main_conf_t *cmcf,
1300 ngx_array_t *in_ports) 1300 ngx_array_t *in_ports)
1301 { 1301 {
1302 ngx_int_t rc; 1302 ngx_int_t rc;
1303 ngx_uint_t s, p, a, i; 1303 ngx_uint_t s, p, a;
1304 ngx_hash_init_t hash; 1304 ngx_hash_init_t hash;
1305 ngx_http_server_name_t *name; 1305 ngx_http_server_name_t *name;
1306 ngx_hash_keys_arrays_t ha; 1306 ngx_hash_keys_arrays_t ha;
1307 ngx_http_conf_in_port_t *in_port; 1307 ngx_http_conf_in_port_t *in_port;
1308 ngx_http_conf_in_addr_t *in_addr; 1308 ngx_http_conf_in_addr_t *in_addr;
1309 #if (NGX_PCRE) 1309 #if (NGX_PCRE)
1310 ngx_uint_t regex; 1310 ngx_uint_t regex, i;
1311 #endif 1311 #endif
1312 1312
1313 in_port = in_ports->elts; 1313 in_port = in_ports->elts;
1314 for (p = 0; p < in_ports->nelts; p++) { 1314 for (p = 0; p < in_ports->nelts; p++) {
1315 1315