Style: unneeded casts of cf->args->elts removed.
This commit is contained in:
parent
02f5632f86
commit
3573c29f25
1 changed files with 2 additions and 2 deletions
|
@ -1146,7 +1146,7 @@ ngx_set_user(ngx_conf_t *cf, ngx_command_t *cmd, void *conf)
|
|||
return NGX_CONF_OK;
|
||||
}
|
||||
|
||||
value = (ngx_str_t *) cf->args->elts;
|
||||
value = cf->args->elts;
|
||||
|
||||
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";
|
||||
}
|
||||
|
||||
value = (ngx_str_t *) cf->args->elts;
|
||||
value = cf->args->elts;
|
||||
|
||||
if (ngx_strcmp(value[1].data, "auto") == 0) {
|
||||
ccf->worker_processes = ngx_ncpu;
|
||||
|
|
Loading…
Reference in a new issue