details:   http://hg.nginx.org/nginx/rev/657f6ec01da0
branches:  
changeset: 6066:657f6ec01da0
user:      Valentin Bartenev <[email protected]>
date:      Mon Apr 06 11:22:24 2015 +0300
description:
Used the correct type for the AIO preload handler return value.

diffstat:

 src/os/unix/ngx_freebsd_sendfile_chain.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (15 lines):

diff -r 0daea93e86a2 -r 657f6ec01da0 src/os/unix/ngx_freebsd_sendfile_chain.c
--- 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 @@ 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;
             }

_______________________________________________
nginx-devel mailing list
[email protected]
http://mailman.nginx.org/mailman/listinfo/nginx-devel

Reply via email to