diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2022-09-07 00:43:51 +0300 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2022-09-07 00:43:51 +0300 |
commit | f6a6758ca2afaf34fc2af0ab5d63bec9a0f4880c (patch) | |
tree | 52c1bf79fcdde7823e826fb818c5d30a44ee9848 | |
parent | 4a4572ff4a18b76bdd039c623a5ca0cb56904d34 (diff) |
Events: fixed style and wrong error handling in the iocp module.
-rw-r--r-- | src/event/modules/ngx_iocp_module.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/event/modules/ngx_iocp_module.c b/src/event/modules/ngx_iocp_module.c index b03944bb0..dca5cedff 100644 --- a/src/event/modules/ngx_iocp_module.c +++ b/src/event/modules/ngx_iocp_module.c @@ -231,9 +231,8 @@ ngx_iocp_del_connection(ngx_connection_t *c, ngx_uint_t flags) } -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 @@ ngx_iocp_create_conf(ngx_cycle_t *cycle) cf = ngx_palloc(cycle->pool, sizeof(ngx_iocp_conf_t)); if (cf == NULL) { - return NGX_CONF_ERROR; + return NULL; } cf->threads = NGX_CONF_UNSET; |