Mercurial > hg > nginx
changeset 8064:5f5a34e83ca2
Events: fixed style and wrong error handling in the iocp module.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Wed, 07 Sep 2022 00:43:51 +0300 |
parents | 9cf231508a8d |
children | 0ce2d7a520be |
files | src/event/modules/ngx_iocp_module.c |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/src/event/modules/ngx_iocp_module.c Tue Aug 09 17:13:46 2022 -0300 +++ b/src/event/modules/ngx_iocp_module.c Wed Sep 07 00:43:51 2022 +0300 @@ -231,9 +231,8 @@ } -static -ngx_int_t ngx_iocp_process_events(ngx_cycle_t *cycle, ngx_msec_t timer, - ngx_uint_t flags) +static ngx_int_t +ngx_iocp_process_events(ngx_cycle_t *cycle, ngx_msec_t timer, ngx_uint_t flags) { int rc; u_int key; @@ -356,7 +355,7 @@ cf = ngx_palloc(cycle->pool, sizeof(ngx_iocp_conf_t)); if (cf == NULL) { - return NGX_CONF_ERROR; + return NULL; } cf->threads = NGX_CONF_UNSET;