mirror of
https://github.com/nginx/nginx.git
synced 2024-12-18 21:23:36 -06:00
Removed excessive casts for ngx_file_info().
This commit is contained in:
parent
90727eb857
commit
731d1fee8a
@ -1124,9 +1124,7 @@ ngx_reopen_files(ngx_cycle_t *cycle, ngx_uid_t user)
|
||||
if (user != (ngx_uid_t) NGX_CONF_UNSET_UINT) {
|
||||
ngx_file_info_t fi;
|
||||
|
||||
if (ngx_file_info((const char *) file[i].name.data, &fi)
|
||||
== NGX_FILE_ERROR)
|
||||
{
|
||||
if (ngx_file_info(file[i].name.data, &fi) == NGX_FILE_ERROR) {
|
||||
ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_errno,
|
||||
ngx_file_info_n " \"%s\" failed",
|
||||
file[i].name.data);
|
||||
|
@ -622,9 +622,7 @@ ngx_create_paths(ngx_cycle_t *cycle, ngx_uid_t user)
|
||||
{
|
||||
ngx_file_info_t fi;
|
||||
|
||||
if (ngx_file_info((const char *) path[i]->name.data, &fi)
|
||||
== NGX_FILE_ERROR)
|
||||
{
|
||||
if (ngx_file_info(path[i]->name.data, &fi) == NGX_FILE_ERROR) {
|
||||
ngx_log_error(NGX_LOG_EMERG, cycle->log, ngx_errno,
|
||||
ngx_file_info_n " \"%s\" failed", path[i]->name.data);
|
||||
return NGX_ERROR;
|
||||
|
Loading…
Reference in New Issue
Block a user