comparison src/event/ngx_event_openssl.c @ 7086:577628e6b6a6

Style.
author Sergey Kandaurov <pluknet@nginx.com>
date Wed, 09 Aug 2017 14:59:46 +0300
parents 07a49cce21ca
children 47b7ffc3339d
comparison
equal deleted inserted replaced
7085:2284008a2791 7086:577628e6b6a6
922 922
923 cln->handler = ngx_ssl_passwords_cleanup; 923 cln->handler = ngx_ssl_passwords_cleanup;
924 cln->data = passwords; 924 cln->data = passwords;
925 925
926 fd = ngx_open_file(file->data, NGX_FILE_RDONLY, NGX_FILE_OPEN, 0); 926 fd = ngx_open_file(file->data, NGX_FILE_RDONLY, NGX_FILE_OPEN, 0);
927
927 if (fd == NGX_INVALID_FILE) { 928 if (fd == NGX_INVALID_FILE) {
928 ngx_conf_log_error(NGX_LOG_EMERG, cf, ngx_errno, 929 ngx_conf_log_error(NGX_LOG_EMERG, cf, ngx_errno,
929 ngx_open_file_n " \"%s\" failed", file->data); 930 ngx_open_file_n " \"%s\" failed", file->data);
930 return NULL; 931 return NULL;
931 } 932 }
2904 ngx_memzero(&file, sizeof(ngx_file_t)); 2905 ngx_memzero(&file, sizeof(ngx_file_t));
2905 file.name = path[i]; 2906 file.name = path[i];
2906 file.log = cf->log; 2907 file.log = cf->log;
2907 2908
2908 file.fd = ngx_open_file(file.name.data, NGX_FILE_RDONLY, 0, 0); 2909 file.fd = ngx_open_file(file.name.data, NGX_FILE_RDONLY, 0, 0);
2910
2909 if (file.fd == NGX_INVALID_FILE) { 2911 if (file.fd == NGX_INVALID_FILE) {
2910 ngx_conf_log_error(NGX_LOG_EMERG, cf, ngx_errno, 2912 ngx_conf_log_error(NGX_LOG_EMERG, cf, ngx_errno,
2911 ngx_open_file_n " \"%V\" failed", &file.name); 2913 ngx_open_file_n " \"%V\" failed", &file.name);
2912 return NGX_ERROR; 2914 return NGX_ERROR;
2913 } 2915 }