static int analyze_critical_chain(int argc, char *argv[], void *userdata) {
_cleanup_(sd_bus_flush_close_unrefp) sd_bus *bus = NULL;
_cleanup_(unit_times_freep) struct unit_times *times = NULL;
- struct unit_times *u;
Hashmap *h;
int n, r;
if (!h)
return log_oom();
- for (u = times; u->has_data; u++) {
+ for (struct unit_times *u = times; u->has_data; u++) {
r = hashmap_put(h, u->name, u);
if (r < 0)
return log_error_errno(r, "Failed to add entry to hashmap: %m");
_cleanup_(sd_bus_flush_close_unrefp) sd_bus *bus = NULL;
_cleanup_(unit_times_freep) struct unit_times *times = NULL;
_cleanup_(table_unrefp) Table *table = NULL;
- struct unit_times *u;
TableCell *cell;
int n, r;
if (r < 0)
return r;
- for (u = times; u->has_data; u++) {
+ for (struct unit_times *u = times; u->has_data; u++) {
if (u->time <= 0)
continue;