diff options
-rw-r--r-- | src/modbuslog.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/modbuslog.c b/src/modbuslog.c index 27b7e5a..4c8ac60 100644 --- a/src/modbuslog.c +++ b/src/modbuslog.c @@ -89,7 +89,7 @@ int main(int argc, char *argv[]) { openlog("modbuslog", SYSLOG_CONSOLE_OUTPUT | LOG_PID | LOG_CONS, LOG_USER); syslog(LOG_INFO, ""); - syslog(LOG_INFO, "modbuslog %s starting",VERSION_STRING); + syslog(LOG_INFO, "modbuslog %s starting", VERSION_STRING); syslog(LOG_INFO, ""); const char *configfile = "/etc/modbuslog.cfg"; @@ -321,12 +321,13 @@ int main(int argc, char *argv[]) { int intervalid; char interval_filename[50]; - sprintf(interval_filename, "/var/modbuslog/interval/interval.txt"); + sprintf(interval_filename, + "/var/modbuslog/interval/interval.txt"); - syslog(LOG_DEBUG, "opening interval file: %s", interval_filename); + syslog(LOG_DEBUG, "opening interval file: %s", + interval_filename); - FILE *intervalfile = fopen( - interval_filename, "r+"); + FILE *intervalfile = fopen(interval_filename, "r+"); if (intervalfile) { fclose(intervalfile); |