]> git.kaiwu.me - nginx.git/commitdiff
Used the correct type for the AIO preload handler return value.
authorValentin Bartenev <vbart@nginx.com>
Mon, 6 Apr 2015 08:22:24 +0000 (11:22 +0300)
committerValentin Bartenev <vbart@nginx.com>
Mon, 6 Apr 2015 08:22:24 +0000 (11:22 +0300)
src/os/unix/ngx_freebsd_sendfile_chain.c

index 25790b6b62bb09ba59bfa23d318e6f0f6915c5e9..3f17dc6e4151fa6f8321df939402780c08e49637 100644 (file)
@@ -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;
             }