list: make our list macros a bit easier to use by not requring type spec on each invocation

We can determine the list entry type via the typeof() gcc construct, and
so we should to make the macros much shorter to use.
This commit is contained in:
Lennart Poettering
2013-10-14 06:11:19 +02:00
parent 14bf2c9d37
commit 71fda00f32
38 changed files with 153 additions and 157 deletions
+2 -2
View File
@@ -3019,7 +3019,7 @@ static int status_property(const char *name, DBusMessageIter *iter, UnitStatusIn
return r;
}
LIST_PREPEND(ExecStatusInfo, exec, i->exec, info);
LIST_PREPEND(exec, i->exec, info);
dbus_message_iter_next(&sub);
}
@@ -3474,7 +3474,7 @@ static int show_one(const char *verb,
}
while ((p = info.exec)) {
LIST_REMOVE(ExecStatusInfo, exec, info.exec, p);
LIST_REMOVE(exec, info.exec, p);
exec_status_info_free(p);
}