[nginx] Used the correct type for the AIO preload handler return...
Valentin Bartenev
vbart at nginx.com
Mon Apr 6 08:24:03 UTC 2015
details: http://hg.nginx.org/nginx/rev/657f6ec01da0
branches:
changeset: 6066:657f6ec01da0
user: Valentin Bartenev <vbart at nginx.com>
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;
}
More information about the nginx-devel
mailing list