diff --git a/src/ebusd/main.cpp b/src/ebusd/main.cpp old mode 100755 new mode 100644 index 5fa2d78d..d9bb90dc --- a/src/ebusd/main.cpp +++ b/src/ebusd/main.cpp @@ -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); } diff --git a/src/ebusd/mqtthandler.cpp b/src/ebusd/mqtthandler.cpp index 3f44c24f..7460acc7 100644 --- a/src/ebusd/mqtthandler.cpp +++ b/src/ebusd/mqtthandler.cpp @@ -112,7 +112,7 @@ bool parseTopic(const string& topic, vector* strs, vector* field static char* replaceSecret(char *arg) { char* ret = strdup(arg); int cnt = 0; - while (*arg && cnt++<256) { + while (*arg && cnt++ < 256) { *arg++ = ' '; } return ret;