]> git.kaiwu.me - nginx.git/commitdiff
Events: fixed style and wrong error handling in the iocp module.
authorMaxim Dounin <mdounin@mdounin.ru>
Tue, 6 Sep 2022 21:43:51 +0000 (00:43 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Tue, 6 Sep 2022 21:43:51 +0000 (00:43 +0300)
src/event/modules/ngx_iocp_module.c

index b03944bb04201e78b737dd8176c71e6692bb0fc2..dca5cedff45d914f303453dfc5b1f627598a365e 100644 (file)
@@ -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;