diff options
author | Lennart Poettering <lennart@poettering.net> | 2013-10-14 06:10:14 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2013-10-14 06:11:19 +0200 |
commit | 71fda00f320379f5cbee8e118848de98caaa229d (patch) | |
tree | 00a913086d70abadb1185e1343d97df860b0d612 /src/core/dbus.c | |
parent | 14bf2c9d375db6a4670bc0ef0e521e35a939a498 (diff) |
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.
Diffstat (limited to 'src/core/dbus.c')
-rw-r--r-- | src/core/dbus.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/dbus.c b/src/core/dbus.c index aa3d93bf06..771ba01f67 100644 --- a/src/core/dbus.c +++ b/src/core/dbus.c @@ -1170,7 +1170,7 @@ static void shutdown_connection(Manager *m, DBusConnection *c) { JobBusClient *cl, *nextcl; LIST_FOREACH_SAFE(client, cl, nextcl, j->bus_client_list) { if (cl->bus == c) { - LIST_REMOVE(JobBusClient, client, j->bus_client_list, cl); + LIST_REMOVE(client, j->bus_client_list, cl); free(cl); } } |