aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2011-02-21 11:44:26 +0000
committerIgor Sysoev <igor@sysoev.ru>2011-02-21 11:44:26 +0000
commit22434e4c723ae5d61d48a33f5cd0bf14e6bfd47c (patch)
tree25f79b31cdf4af598135ff616f3aacb5bad9721e
parentb10de5d63a31b0364b9f5ec090bbb9c3b131c4c3 (diff)
downloadnginx-22434e4c723ae5d61d48a33f5cd0bf14e6bfd47c.tar.gz
nginx-22434e4c723ae5d61d48a33f5cd0bf14e6bfd47c.zip
fix warnings
-rw-r--r--src/http/modules/perl/nginx.xs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/modules/perl/nginx.xs b/src/http/modules/perl/nginx.xs
index aef4c8b03..035e261eb 100644
--- a/src/http/modules/perl/nginx.xs
+++ b/src/http/modules/perl/nginx.xs
@@ -467,7 +467,7 @@ header_out(r, key, value)
}
if (header->key.len == sizeof("Content-Length") - 1
- && ngx_strncasecmp(header->key.data, "Content-Length",
+ && ngx_strncasecmp(header->key.data, (u_char *) "Content-Length",
sizeof("Content-Length") - 1) == 0)
{
r->headers_out.content_length_n = (off_t) SvIV(value);
@@ -642,7 +642,7 @@ sendfile(r, filename, offset = -1, bytes = 0)
XSRETURN_EMPTY;
}
- (void) ngx_cpystrn(path.data, filename, path.len + 1);
+ (void) ngx_cpystrn(path.data, (u_char *) filename, path.len + 1);
clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);