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
+++ b/src/os/unix/ngx_freebsd_sendfile_chain.c
@@ -266,9 +266,9 @@ ngx_freebsd_sendfile_chain(ngx_connectio
                 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;
             }