Style: unneeded casts of cf->args->elts removed.

This commit is contained in:
Maxim Dounin 2015-10-19 23:04:49 +03:00
parent 02f5632f86
commit 3573c29f25

View file

@ -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;