--- a/thermferm/rdconfig.c Thu Jul 31 23:57:04 2014 +0200 +++ b/thermferm/rdconfig.c Fri Aug 01 09:25:38 2014 +0200 @@ -114,7 +114,8 @@ -int wrconfig(void) +int do_wrconfig(void); +int do_wrconfig(void) { int rc = 0; FILE *fp; @@ -563,6 +564,17 @@ fclose(fp); xmlBufferFree(buf); + return 0; +} + + + +int wrconfig(void) +{ + int rc; + + rc = do_wrconfig(); + syslog(LOG_NOTICE, "Rewritten configuration, rc=%d", rc); return rc; }