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-seat.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-seat.c')
-rw-r--r-- | src/login/logind-seat.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/login/logind-seat.c b/src/login/logind-seat.c index feebcf4558..6f3299bbad 100644 --- a/src/login/logind-seat.c +++ b/src/login/logind-seat.c @@ -67,7 +67,7 @@ void seat_free(Seat *s) { assert(s); if (s->in_gc_queue) - LIST_REMOVE(Seat, gc_queue, s->manager->seat_gc_queue, s); + LIST_REMOVE(gc_queue, s->manager->seat_gc_queue, s); while (s->sessions) session_free(s->sessions); @@ -415,7 +415,7 @@ int seat_attach_session(Seat *s, Session *session) { assert(!session->seat); session->seat = s; - LIST_PREPEND(Session, sessions_by_seat, s->sessions, session); + LIST_PREPEND(sessions_by_seat, s->sessions, session); seat_send_changed(s, "Sessions\0"); @@ -533,7 +533,7 @@ void seat_add_to_gc_queue(Seat *s) { if (s->in_gc_queue) return; - LIST_PREPEND(Seat, gc_queue, s->manager->seat_gc_queue, s); + LIST_PREPEND(gc_queue, s->manager->seat_gc_queue, s); s->in_gc_queue = true; } |