mirror of
https://github.com/nginx/nginx.git
synced 2024-12-19 05:33:52 -06:00
fix warnings
This commit is contained in:
parent
b10de5d63a
commit
22434e4c72
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user