diff options
author | David Tardon <dtardon@redhat.com> | 2023-08-14 16:32:55 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2023-08-17 09:48:17 +0200 |
commit | 52e3671bf7e6321c58c6d3a6c8ad8e167259a569 (patch) | |
tree | 6185c9ee5f58e40f8f2931ae89a118ca4083a9ac /src/machine | |
parent | tree-wide: use LIST_CLEAR() (diff) | |
download | systemd-52e3671bf7e6321c58c6d3a6c8ad8e167259a569.tar.xz systemd-52e3671bf7e6321c58c6d3a6c8ad8e167259a569.zip |
tree-wide: use LIST_POP()
Diffstat (limited to 'src/machine')
-rw-r--r-- | src/machine/machined.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/machine/machined.c b/src/machine/machined.c index 8152bda50d..926a8a7f2b 100644 --- a/src/machine/machined.c +++ b/src/machine/machined.c @@ -254,8 +254,7 @@ static void manager_gc(Manager *m, bool drop_not_started) { assert(m); - while ((machine = m->machine_gc_queue)) { - LIST_REMOVE(gc_queue, m->machine_gc_queue, machine); + while ((machine = LIST_POP(gc_queue, m->machine_gc_queue))) { machine->in_gc_queue = false; /* First, if we are not closing yet, initiate stopping */ |