summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2017-09-25 18:04:11 +0300
committerIgor Sysoev <igor@sysoev.ru>2017-09-25 18:04:11 +0300
commit6b0a3aed22cfd26325d7a7438f10e0392cdde467 (patch)
treee4f3baab18edc326cb0728997df5b7987e9ea440
parent2ae044926291c159bc2391e4fb555eaeb2417607 (diff)
downloadunit-6b0a3aed22cfd26325d7a7438f10e0392cdde467.tar.gz
unit-6b0a3aed22cfd26325d7a7438f10e0392cdde467.tar.bz2
Style fixes.
Diffstat (limited to '')
-rw-r--r--auto/summary10
-rw-r--r--src/nxt_main_process.c9
2 files changed, 10 insertions, 9 deletions
diff --git a/auto/summary b/auto/summary
index a45855d6..6af23a8d 100644
--- a/auto/summary
+++ b/auto/summary
@@ -7,12 +7,12 @@ cat << END
Configuration summary:
- unit pid file: "$NXT_PID"
- unit log file: "$NXT_LOG"
- unit modules path: "$NXT_MODULES"
- unit state path: "$NXT_STATE"
+ unit pid file: "$NXT_PID"
+ unit log file: "$NXT_LOG"
+ unit modules path: "$NXT_MODULES"
+ unit state path: "$NXT_STATE"
- unit control API socket: "$NXT_CONTROL"
+ unit control API socket: "$NXT_CONTROL"
non-privileged user: "$NXT_USER"
non-privileged group: "$NXT_GROUP"
diff --git a/src/nxt_main_process.c b/src/nxt_main_process.c
index 7f39cc1d..7de643ca 100644
--- a/src/nxt_main_process.c
+++ b/src/nxt_main_process.c
@@ -322,11 +322,12 @@ nxt_main_start_controller_process(nxt_task_t *task, nxt_runtime_t *rt)
file.name = (nxt_file_name_t *) rt->conf;
- if (nxt_file_open(task, &file, NXT_FILE_RDONLY, NXT_FILE_OPEN, 0) == NXT_OK) {
+ ret = nxt_file_open(task, &file, NXT_FILE_RDONLY, NXT_FILE_OPEN, 0);
- if (nxt_fast_path(nxt_file_info(&file, &fi) == NXT_OK
- && nxt_is_file(&fi)))
- {
+ if (ret == NXT_OK) {
+ ret = nxt_file_info(&file, &fi);
+
+ if (nxt_fast_path(ret == NXT_OK && nxt_is_file(&fi))) {
conf.length = nxt_file_size(&fi);
conf.start = nxt_malloc(conf.length);