thermferm/rdconfig.c

changeset 666
48cc8868f9f4
parent 645
49eb753a958b
child 675
825210ba2707
--- a/thermferm/rdconfig.c	Sun Apr 07 16:05:06 2024 +0200
+++ b/thermferm/rdconfig.c	Sun Apr 07 20:26:37 2024 +0200
@@ -27,6 +27,7 @@
 #include "xutil.h"
 
 int			debug = FALSE;
+int			foreground = FALSE;
 sys_config		Config;			/* System configuration		*/
 extern pthread_mutex_t  mutexes[5];
 
@@ -481,7 +482,7 @@
     mypath = xstrcat(mypath, (char *)"thermferm.xml");
 
     if (debug)
-	fprintf(stdout, "Writing %s\n", mypath);
+	syslog(LOG_NOTICE, "Writing %s", mypath);
 
     if ((fp = fopen(mypath, "w")) == NULL) {
 	syslog(LOG_NOTICE, "could not rewrite %s", mypath);

mercurial