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/machine/machine.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/machine/machine.c')
-rw-r--r-- | src/machine/machine.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/machine/machine.c b/src/machine/machine.c index 602aa18be6..f78b0cf8fd 100644 --- a/src/machine/machine.c +++ b/src/machine/machine.c @@ -73,7 +73,7 @@ void machine_free(Machine *m) { assert(m); if (m->in_gc_queue) - LIST_REMOVE(Machine, gc_queue, m->manager->machine_gc_queue, m); + LIST_REMOVE(gc_queue, m->manager->machine_gc_queue, m); if (m->scope) { hashmap_remove(m->manager->machine_units, m->scope); @@ -369,7 +369,7 @@ void machine_add_to_gc_queue(Machine *m) { if (m->in_gc_queue) return; - LIST_PREPEND(Machine, gc_queue, m->manager->machine_gc_queue, m); + LIST_PREPEND(gc_queue, m->manager->machine_gc_queue, m); m->in_gc_queue = true; } |