Mercurial > hg > nginx
diff src/os/unix/ngx_writev_chain.c @ 290:87e73f067470
nginx-0.0.2-2004-03-16-10:10:12 import
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 16 Mar 2004 07:10:12 +0000 |
parents | 70e1c7d2b83d |
children | 6bdf858bff8c |
line wrap: on
line diff
--- a/src/os/unix/ngx_writev_chain.c Mon Mar 15 15:26:11 2004 +0000 +++ b/src/os/unix/ngx_writev_chain.c Tue Mar 16 07:10:12 2004 +0000 @@ -6,7 +6,7 @@ ngx_chain_t *ngx_writev_chain(ngx_connection_t *c, ngx_chain_t *in) { - char *prev; + u_char *prev; ssize_t n, size; off_t sent; struct iovec *iov; @@ -51,7 +51,7 @@ } else { ngx_test_null(iov, ngx_push_array(&io), 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; prev = cl->hunk->last; }