formatting
This commit is contained in:
Executable → Regular
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user