projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
check fscanf return value in process_check
[collectd.git]
/
src
/
modbus.c
diff --git
a/src/modbus.c
b/src/modbus.c
index
5b2509b
..
e36f3da
100644
(file)
--- a/
src/modbus.c
+++ b/
src/modbus.c
@@
-341,7
+341,7
@@
static int mb_init_connection(mb_host_t *host) /* {{{ */
host->is_connected = true;
return 0;
} /* }}} int mb_init_connection */
host->is_connected = true;
return 0;
} /* }}} int mb_init_connection */
-/* #endif LEGACY_LIBMODBUS */
+
/* #endif LEGACY_LIBMODBUS */
#else /* if !LEGACY_LIBMODBUS */
/* Version 2.9.2 */
#else /* if !LEGACY_LIBMODBUS */
/* Version 2.9.2 */
@@
-1078,7
+1078,8
@@
static int mb_config_add_host(oconfig_item_t *ci) /* {{{ */
/* callback = */ mb_read,
/* interval = */ interval,
&(user_data_t){
/* callback = */ mb_read,
/* interval = */ interval,
&(user_data_t){
- .data = host, .free_func = host_free,
+ .data = host,
+ .free_func = host_free,
});
} else {
host_free(host);
});
} else {
host_free(host);