X-Git-Url: https://git.octo.it/?p=collectd.git;a=blobdiff_plain;f=src%2Fmodbus.c;h=e36f3daea5e0319b4190026165928f773c4c9dfa;hp=5b2509b484ae1e515ab3ba184bc10ab0a74d00b2;hb=a811574a6acbf87f23948411876a231fecaeb491;hpb=43d22c19485997e82d28a9ed7ba17965882dc27f diff --git a/src/modbus.c b/src/modbus.c index 5b2509b4..e36f3dae 100644 --- 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 */ -/* #endif LEGACY_LIBMODBUS */ + /* #endif LEGACY_LIBMODBUS */ #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){ - .data = host, .free_func = host_free, + .data = host, + .free_func = host_free, }); } else { host_free(host);