mirror of
https://github.com/nginx/nginx.git
synced 2025-06-11 04:12:40 +08:00
Style: unneeded casts of cf->args->elts removed.
This commit is contained in:
parent
cc74c63d39
commit
582911c9c2
@ -1146,7 +1146,7 @@ ngx_set_user(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
|||||||
return NGX_CONF_OK;
|
return NGX_CONF_OK;
|
||||||
}
|
}
|
||||||
|
|
||||||
value = (ngx_str_t *) cf->args->elts;
|
value = cf->args->elts;
|
||||||
|
|
||||||
ccf->username = (char *) value[1].data;
|
ccf->username = (char *) value[1].data;
|
||||||
|
|
||||||
@ -1352,7 +1352,7 @@ ngx_set_worker_processes(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
|||||||
return "is duplicate";
|
return "is duplicate";
|
||||||
}
|
}
|
||||||
|
|
||||||
value = (ngx_str_t *) cf->args->elts;
|
value = cf->args->elts;
|
||||||
|
|
||||||
if (ngx_strcmp(value[1].data, "auto") == 0) {
|
if (ngx_strcmp(value[1].data, "auto") == 0) {
|
||||||
ccf->worker_processes = ngx_ncpu;
|
ccf->worker_processes = ngx_ncpu;
|
||||||
|
Loading…
Reference in New Issue
Block a user