From: Igor Sysoev Date: Sat, 5 May 2007 05:40:29 +0000 (+0000) Subject: fix building by msvc X-Git-Tag: release-0.5.20~9 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=d1e38e8788873df130a07690c809803cfcab8bdd;p=nginx.git fix building by msvc --- diff --git a/src/http/modules/ngx_http_rewrite_module.c b/src/http/modules/ngx_http_rewrite_module.c index 1b660c308..a5b96f8fd 100644 --- a/src/http/modules/ngx_http_rewrite_module.c +++ b/src/http/modules/ngx_http_rewrite_module.c @@ -936,9 +936,9 @@ ngx_http_rewrite_set(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) } if (v->get_handler == NULL - && ngx_strncasecmp(value[1].data, "http_", 5) != 0 - && ngx_strncasecmp(value[1].data, "sent_http_", 10) != 0 - && ngx_strncasecmp(value[1].data, "upstream_http_", 14) != 0) + && ngx_strncasecmp(value[1].data, (u_char *) "http_", 5) != 0 + && ngx_strncasecmp(value[1].data, (u_char *) "sent_http_", 10) != 0 + && ngx_strncasecmp(value[1].data, (u_char *) "upstream_http_", 14) != 0) { v->get_handler = ngx_http_rewrite_var; v->data = index;