Skip to content

Commit

Permalink
Events: fixed style and wrong error handling in the iocp module.
Browse files Browse the repository at this point in the history
  • Loading branch information
mdounin committed Sep 6, 2022
1 parent 4a4572f commit f6a6758
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src/event/modules/ngx_iocp_module.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit f6a6758

Please sign in to comment.