Mercurial > hg > nginx
changeset 6066:657f6ec01da0
Used the correct type for the AIO preload handler return value.
author | Valentin Bartenev <vbart@nginx.com> |
---|---|
date | Mon, 06 Apr 2015 11:22:24 +0300 |
parents | 0daea93e86a2 |
children | 231a5bbd9e9c |
files | src/os/unix/ngx_freebsd_sendfile_chain.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/os/unix/ngx_freebsd_sendfile_chain.c Fri Apr 03 18:20:57 2015 +0300 +++ b/src/os/unix/ngx_freebsd_sendfile_chain.c Mon Apr 06 11:22:24 2015 +0300 @@ -266,9 +266,9 @@ 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; }