const char *type_instance, derive_t rx, derive_t tx) {
value_list_t vl = VALUE_LIST_INIT;
value_t values[] = {
- {.derive = rx},
- {.derive = tx},
+ {.derive = rx}, {.derive = tx},
};
vl.values = values;
return plugin_register_complex_read(
/* group = */ NULL, read_name, cr_read, /* interval = */ 0,
&(user_data_t){
- .data = router_data,
- .free_func = (void *)cr_free_data,
+ .data = router_data, .free_func = (void *)cr_free_data,
});
} /* }}} int cr_config_router */