mirror of
https://github.com/nginx/nginx.git
synced 2025-07-25 22:56:59 +08:00
Events: fixed style and wrong error handling in the iocp module.
This commit is contained in:
parent
4a4572ff4a
commit
f6a6758ca2
@ -231,9 +231,8 @@ ngx_iocp_del_connection(ngx_connection_t *c, ngx_uint_t flags)
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
static
|
static ngx_int_t
|
||||||
ngx_int_t ngx_iocp_process_events(ngx_cycle_t *cycle, ngx_msec_t timer,
|
ngx_iocp_process_events(ngx_cycle_t *cycle, ngx_msec_t timer, ngx_uint_t flags)
|
||||||
ngx_uint_t flags)
|
|
||||||
{
|
{
|
||||||
int rc;
|
int rc;
|
||||||
u_int key;
|
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));
|
cf = ngx_palloc(cycle->pool, sizeof(ngx_iocp_conf_t));
|
||||||
if (cf == NULL) {
|
if (cf == NULL) {
|
||||||
return NGX_CONF_ERROR;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
cf->threads = NGX_CONF_UNSET;
|
cf->threads = NGX_CONF_UNSET;
|
||||||
|
Loading…
Reference in New Issue
Block a user