# 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 -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 @@ 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; }