aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/ftphelper.c3
-rw-r--r--src/modbuslog.c7
2 files changed, 4 insertions, 6 deletions
diff --git a/src/ftphelper.c b/src/ftphelper.c
index ffa289c..fae3771 100644
--- a/src/ftphelper.c
+++ b/src/ftphelper.c
@@ -18,9 +18,10 @@
*/
// gcc ftphelper.c -o ftphelper `pkg-config --libs --cflags libconfig`
+
#include <stdio.h>
#include <sys/ioctl.h>
-#include <sys/types.h>
+#include <sys/types.h>
#include <sys/socket.h>
#include <net/if.h>
#include <string.h>
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);