X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Fmodbus.c;h=e36f3daea5e0319b4190026165928f773c4c9dfa;hb=0e73c26f5670b2f11eecfdadaf545bcc7f260658;hp=5b2509b484ae1e515ab3ba184bc10ab0a74d00b2;hpb=93c4facaf7b6e35e032c3d46631097e34891d588;p=collectd.git 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);