Skip to content

Commit

Permalink
modules: convert to use fvwm_debug
Browse files Browse the repository at this point in the history
  • Loading branch information
ThomasAdam committed Dec 18, 2024
1 parent e89aee2 commit c4e4217
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/FvwmBacker/FvwmBacker.c
Original file line number Diff line number Diff line change
Expand Up @@ -531,6 +531,10 @@ int ParseConfigLine(char *line)
else if (strncasecmp(line, "colorset", 8) == 0)
{
return LoadColorset(line + 8);
} else if (strncasecmp(line, "LoggingFD", 9) == 0) {
int fd = -1;
sscanf((line + 10), "%d", &fd);
log_set_fd(fd);
}
}
return -1;
Expand Down
5 changes: 5 additions & 0 deletions modules/FvwmIdent/FvwmIdent.c
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,11 @@ int main(int argc, char **argv)
{
LoadColorset(&tline[8]);
}
else if (strncasecmp(tline, "LoggingFD", 9) == 0) {
int fd = -1;
sscanf((tline + 10), "%d", &fd);
log_set_fd(fd);
}
GetConfigLine(fd, &tline);
}

Expand Down

0 comments on commit c4e4217

Please sign in to comment.