aboutsummaryrefslogtreecommitdiff
path: root/src/os
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2003-05-15 15:42:53 +0000
committerIgor Sysoev <igor@sysoev.ru>2003-05-15 15:42:53 +0000
commit6ddfbf06625eca15ddf24ac95b755cdc9db32bfa (patch)
treefdf4cccdd271b3fce401cff82c911aeb2a390703 /src/os
parent79a804880ee362a1256e6e8aeadb73f7f5cf0885 (diff)
downloadnginx-6ddfbf06625eca15ddf24ac95b755cdc9db32bfa.tar.gz
nginx-6ddfbf06625eca15ddf24ac95b755cdc9db32bfa.zip
nginx-0.0.1-2003-05-15-19:42:53 import
Diffstat (limited to 'src/os')
-rw-r--r--src/os/unix/ngx_freebsd_write_chain.c1
-rw-r--r--src/os/unix/ngx_recv_chain.c4
2 files changed, 5 insertions, 0 deletions
diff --git a/src/os/unix/ngx_freebsd_write_chain.c b/src/os/unix/ngx_freebsd_write_chain.c
index 6b9882a7b..0317ade2c 100644
--- a/src/os/unix/ngx_freebsd_write_chain.c
+++ b/src/os/unix/ngx_freebsd_write_chain.c
@@ -54,6 +54,7 @@ ngx_chain_t *ngx_freebsd_write_chain(ngx_connection_t *c, ngx_chain_t *in)
if (ngx_freebsd_sendfile_nbytes_bug) {
hsize += ce->hunk->last - ce->hunk->pos;
}
+
ce = ce->next;
}
}
diff --git a/src/os/unix/ngx_recv_chain.c b/src/os/unix/ngx_recv_chain.c
index 7a8a3b82c..4e9316830 100644
--- a/src/os/unix/ngx_recv_chain.c
+++ b/src/os/unix/ngx_recv_chain.c
@@ -13,6 +13,10 @@ ssize_t ngx_recv_chain(ngx_connection_t *c, ngx_chain_t *entry)
ngx_err_t err;
ngx_array_t io;
+#if (NGX_SUPPRESS_WARN)
+ iov = NULL;
+#endif
+
ngx_init_array(io, c->pool, 10, sizeof(struct iovec), NGX_ERROR);
while (entry) {