formatting

This commit is contained in:
john30
2019-10-27 09:23:54 +01:00
parent ae91be0874
commit 82d6a5b4a4
2 changed files with 2 additions and 2 deletions
Executable → Regular
+1 -1
View File
@@ -702,7 +702,7 @@ void signalHandler(int sig) {
switch (sig) {
case SIGHUP:
logNotice(lf_main, "SIGHUP received");
if (!opt.foreground && opt.logFile && opt.logFile[0] != 0) { // for log file rotation
if (!opt.foreground && opt.logFile && opt.logFile[0] != 0) { // for log file rotation
closeLogFile();
setLogFile(opt.logFile);
}
+1 -1
View File
@@ -112,7 +112,7 @@ bool parseTopic(const string& topic, vector<string>* strs, vector<string>* field
static char* replaceSecret(char *arg) {
char* ret = strdup(arg);
int cnt = 0;
while (*arg && cnt++<256) {
while (*arg && cnt++ < 256) {
*arg++ = ' ';
}
return ret;