comparison src/http/ngx_http_request.c @ 2561:2c3cff5999a2

fix building without PCRE, introduced in r2553
author Igor Sysoev <igor@sysoev.ru>
date Thu, 12 Mar 2009 11:42:34 +0000
parents a7443674e429
children 1374ffff9635
comparison
equal deleted inserted replaced
2560:a7443674e429 2561:2c3cff5999a2
1609 1609
1610 static ngx_int_t 1610 static ngx_int_t
1611 ngx_http_find_virtual_server(ngx_http_request_t *r, u_char *host, size_t len) 1611 ngx_http_find_virtual_server(ngx_http_request_t *r, u_char *host, size_t len)
1612 { 1612 {
1613 u_char *server; 1613 u_char *server;
1614 size_t ncaptures;
1615 ngx_uint_t hash; 1614 ngx_uint_t hash;
1616 ngx_http_virtual_names_t *vn; 1615 ngx_http_virtual_names_t *vn;
1617 ngx_http_core_loc_conf_t *clcf; 1616 ngx_http_core_loc_conf_t *clcf;
1618 ngx_http_core_srv_conf_t *cscf; 1617 ngx_http_core_srv_conf_t *cscf;
1619 u_char buf[32]; 1618 u_char buf[32];
1644 } 1643 }
1645 1644
1646 #if (NGX_PCRE) 1645 #if (NGX_PCRE)
1647 1646
1648 if (vn->nregex) { 1647 if (vn->nregex) {
1648 size_t ncaptures;
1649 ngx_int_t n; 1649 ngx_int_t n;
1650 ngx_uint_t i; 1650 ngx_uint_t i;
1651 ngx_str_t name; 1651 ngx_str_t name;
1652 ngx_http_server_name_t *sn; 1652 ngx_http_server_name_t *sn;
1653 1653