Skip to content

Commit 5cdcd96

Browse files
committed
clang-format
1 parent 716471e commit 5cdcd96

2 files changed

Lines changed: 14 additions & 14 deletions

File tree

include/Common/Daemon.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,14 +71,14 @@ class Daemon
7171
protected:
7272
SimpleLog log; // object for output logging.
7373
ConfigFile config; // input configuration file, if any. Loaded if path provided on command line.
74-
74+
7575
struct ConfigOption {
7676
std::string key;
7777
std::string value;
7878
};
79-
80-
std::vector<ConfigOption> execOptions; // options extracted from command line arguments (-o key=value)
81-
79+
80+
std::vector<ConfigOption> execOptions; // options extracted from command line arguments (-o key=value)
81+
8282
// check daemon status (e.g. after constructor, before starting main loop by calling run(), to know if init success)
8383
bool isOk();
8484

src/Daemon.cxx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -127,18 +127,18 @@ Daemon::Daemon(int argc, char* argv[], DaemonConfigParameters* dConfigParams, st
127127
} else if (key == "logRotateNow") {
128128
params.logRotateNow = std::stoi(value);
129129
} else {
130-
bool keyOk = 0;
131-
for (auto const& k : extraCommandLineOptions) {
132-
if (k == key) {
133-
keyOk = 1;
134-
execOptions.push_back({key, value});
135-
break;
136-
}
137-
}
138-
if (!keyOk) {
130+
bool keyOk = 0;
131+
for (auto const& k : extraCommandLineOptions) {
132+
if (k == key) {
133+
keyOk = 1;
134+
execOptions.push_back({ key, value });
135+
break;
136+
}
137+
}
138+
if (!keyOk) {
139139
log.error("Unkown option key %s in option %s", key.c_str(), optarg);
140140
throw __LINE__;
141-
}
141+
}
142142
}
143143
} break;
144144

0 commit comments

Comments
 (0)