From 10a543a810ac78eb5d754302b001debf9cd420c4 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Tue, 16 Mar 2004 07:10:12 +0000 Subject: nginx-0.0.2-2004-03-16-10:10:12 import --- src/os/unix/ngx_linux_sendfile_chain.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/os/unix/ngx_linux_sendfile_chain.c') diff --git a/src/os/unix/ngx_linux_sendfile_chain.c b/src/os/unix/ngx_linux_sendfile_chain.c index 463fddac7..25932b598 100644 --- a/src/os/unix/ngx_linux_sendfile_chain.c +++ b/src/os/unix/ngx_linux_sendfile_chain.c @@ -22,7 +22,7 @@ ngx_chain_t *ngx_linux_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in) { int rc; - char *prev; + u_char *prev; off_t fprev; size_t size, fsize, sent; ngx_int_t eintr; @@ -71,7 +71,7 @@ ngx_chain_t *ngx_linux_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in) } else { ngx_test_null(iov, ngx_push_array(&header), NGX_CHAIN_ERROR); - iov->iov_base = cl->hunk->pos; + iov->iov_base = (void *) cl->hunk->pos; iov->iov_len = cl->hunk->last - cl->hunk->pos; } -- cgit v1.2.3