Mercurial > hg > nginx-quic
comparison src/http/modules/perl/nginx.xs @ 3870:8cd7594916ec
fix warnings
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 21 Feb 2011 11:44:26 +0000 |
parents | 0eb46e3c5c02 |
children | ca3230f2c6d8 edc216059175 |
comparison
equal
deleted
inserted
replaced
3869:ee223ca91129 | 3870:8cd7594916ec |
---|---|
465 if (ngx_http_perl_sv2str(aTHX_ r, &header->value, value) != NGX_OK) { | 465 if (ngx_http_perl_sv2str(aTHX_ r, &header->value, value) != NGX_OK) { |
466 XSRETURN_EMPTY; | 466 XSRETURN_EMPTY; |
467 } | 467 } |
468 | 468 |
469 if (header->key.len == sizeof("Content-Length") - 1 | 469 if (header->key.len == sizeof("Content-Length") - 1 |
470 && ngx_strncasecmp(header->key.data, "Content-Length", | 470 && ngx_strncasecmp(header->key.data, (u_char *) "Content-Length", |
471 sizeof("Content-Length") - 1) == 0) | 471 sizeof("Content-Length") - 1) == 0) |
472 { | 472 { |
473 r->headers_out.content_length_n = (off_t) SvIV(value); | 473 r->headers_out.content_length_n = (off_t) SvIV(value); |
474 r->headers_out.content_length = header; | 474 r->headers_out.content_length = header; |
475 } | 475 } |
640 path.data = ngx_pnalloc(r->pool, path.len + 1); | 640 path.data = ngx_pnalloc(r->pool, path.len + 1); |
641 if (path.data == NULL) { | 641 if (path.data == NULL) { |
642 XSRETURN_EMPTY; | 642 XSRETURN_EMPTY; |
643 } | 643 } |
644 | 644 |
645 (void) ngx_cpystrn(path.data, filename, path.len + 1); | 645 (void) ngx_cpystrn(path.data, (u_char *) filename, path.len + 1); |
646 | 646 |
647 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); | 647 clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module); |
648 | 648 |
649 ngx_memzero(&of, sizeof(ngx_open_file_info_t)); | 649 ngx_memzero(&of, sizeof(ngx_open_file_info_t)); |
650 | 650 |