aboutsummaryrefslogtreecommitdiffstats
path: root/src/modbuslog.c
diff options
context:
space:
mode:
authorJonathan McCrohan <jmccrohan@gmail.com>2012-03-05 01:17:37 +0000
committerJonathan McCrohan <jmccrohan@gmail.com>2012-03-05 01:17:37 +0000
commit947f7d6b88ef8e891f67d7fac44961cd20fde406 (patch)
tree8b8179b071371484da1a8d942b36764bbbf1ac45 /src/modbuslog.c
parente7b8d92cc55b0c931df6851064e6d36bfa4978f5 (diff)
downloadverteco-947f7d6b88ef8e891f67d7fac44961cd20fde406.tar.gz
Refactor code
No source chances, reindent only.
Diffstat (limited to 'src/modbuslog.c')
-rw-r--r--src/modbuslog.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/modbuslog.c b/src/modbuslog.c
index fd1f00d..198015f 100644
--- a/src/modbuslog.c
+++ b/src/modbuslog.c
@@ -46,8 +46,7 @@ void minute_check(int signum) {
}
// get mac address of primary interface eth0
-char *
-mac_address() {
+char *mac_address() {
int s;
struct ifreq ifr;
@@ -206,8 +205,7 @@ int main(int argc, char *argv[]) {
modbus_set_slave(ctx, slaveid);
modbus_set_debug(ctx, DEBUG);
- if (ctx == NULL)
- {
+ if (ctx == NULL) {
syslog(LOG_ERR, "Unable to create libmodbus object");
}
@@ -366,7 +364,6 @@ int main(int argc, char *argv[]) {
//return 0;
}
-
//printf("%d ", slaveid);
}
//printf("%d\n", unixtime_min);