-static gboolean collect_data(struct State *state __attribute__((unused))) {
- fprintf(stderr, "Voltage: %f, current: %f\n", fatof(voltage_filename),
- fatof(current_filename));
+static gboolean collect_data(struct State *state) {
+ fprintf(stderr, "Voltage: %f, current: %f\n", fatof(state->voltage_filename),
+ fatof(state->current_filename));