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/login/logind-session-device.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/login/logind-session-device.c')
-rw-r--r-- | src/login/logind-session-device.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/login/logind-session-device.c b/src/login/logind-session-device.c index 6605935f3c..f1578bda96 100644 --- a/src/login/logind-session-device.c +++ b/src/login/logind-session-device.c @@ -390,7 +390,7 @@ int session_device_new(Session *s, dev_t dev, SessionDevice **out) { } sd->fd = r; - LIST_PREPEND(SessionDevice, sd_by_device, sd->device->session_devices, sd); + LIST_PREPEND(sd_by_device, sd->device->session_devices, sd); *out = sd; return 0; @@ -409,7 +409,7 @@ void session_device_free(SessionDevice *sd) { session_device_notify(sd, SESSION_DEVICE_RELEASE); close_nointr_nofail(sd->fd); - LIST_REMOVE(SessionDevice, sd_by_device, sd->device->session_devices, sd); + LIST_REMOVE(sd_by_device, sd->device->session_devices, sd); hashmap_remove(sd->session->devices, &sd->dev); |