summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorValentin Bartenev <vbart@nginx.com>2015-04-06 11:22:24 +0300
committerValentin Bartenev <vbart@nginx.com>2015-04-06 11:22:24 +0300
commit1329c4af80c93d5f0157728a009196199a42c472 (patch)
tree5fd24b76466a2a76065bc7d6e64872dc06cff9d6
parent76bf2f9ab58266dbf45a19f6b5b4ae0b1f8e2da2 (diff)
Used the correct type for the AIO preload handler return value.
-rw-r--r--src/os/unix/ngx_freebsd_sendfile_chain.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/os/unix/ngx_freebsd_sendfile_chain.c b/src/os/unix/ngx_freebsd_sendfile_chain.c
index 25790b6b6..3f17dc6e4 100644
--- a/src/os/unix/ngx_freebsd_sendfile_chain.c
+++ b/src/os/unix/ngx_freebsd_sendfile_chain.c
@@ -266,9 +266,9 @@ ngx_freebsd_sendfile_chain(ngx_connection_t *c, ngx_chain_t *in, off_t limit)
c->busy_count = 0;
}
- rc = aio->preload_handler(file);
+ n = aio->preload_handler(file);
- if (rc > 0) {
+ if (n > 0) {
send = prev_send + sent;
continue;
}