comparison src/os/unix/ngx_files.c @ 7086:577628e6b6a6

Style.
author Sergey Kandaurov <pluknet@nginx.com>
date Wed, 09 Aug 2017 14:59:46 +0300
parents 7eb19447b2de
children 0a04e5e4c40b
comparison
equal deleted inserted replaced
7085:2284008a2791 7086:577628e6b6a6
618 ngx_int_t 618 ngx_int_t
619 ngx_create_file_mapping(ngx_file_mapping_t *fm) 619 ngx_create_file_mapping(ngx_file_mapping_t *fm)
620 { 620 {
621 fm->fd = ngx_open_file(fm->name, NGX_FILE_RDWR, NGX_FILE_TRUNCATE, 621 fm->fd = ngx_open_file(fm->name, NGX_FILE_RDWR, NGX_FILE_TRUNCATE,
622 NGX_FILE_DEFAULT_ACCESS); 622 NGX_FILE_DEFAULT_ACCESS);
623
623 if (fm->fd == NGX_INVALID_FILE) { 624 if (fm->fd == NGX_INVALID_FILE) {
624 ngx_log_error(NGX_LOG_CRIT, fm->log, ngx_errno, 625 ngx_log_error(NGX_LOG_CRIT, fm->log, ngx_errno,
625 ngx_open_file_n " \"%s\" failed", fm->name); 626 ngx_open_file_n " \"%s\" failed", fm->name);
626 return NGX_ERROR; 627 return NGX_ERROR;
627 } 628 }