aboutsummaryrefslogtreecommitdiffstats
path: root/src/modbuslog.c
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2012-03-07 01:58:05 +0000
committerJonathan McCrohan <jmccrohan@gmail.com>2012-03-07 01:58:05 +0000
commitc06b533b4abf44055fe271afec93c47bd5da1d43 (patch)
treef687a92c8de4b90dc3c5b1e33bfb66b512f41728 /src/modbuslog.c
parent58bba2bc1f7da50109467a5ffd233b94623deac5 (diff)
downloadverteco-c06b533b4abf44055fe271afec93c47bd5da1d43.tar.gz
Reindent
Diffstat (limited to '')
-rw-r--r--src/modbuslog.c11
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);