# HG changeset patch # User Valentin Bartenev # Date 1428308544 -10800 # Node ID 657f6ec01da055749837eac02166dec2804a5fb2 # Parent 0daea93e86a2fd7ce74f820980851e6d38934111 Used the correct type for the AIO preload handler return value. diff --git a/src/os/unix/ngx_freebsd_sendfile_chain.c b/src/os/unix/ngx_freebsd_sendfile_chain.c --- 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; }