chiark / gitweb /
nspawn: fix barrier-destroy call
authorDavid Herrmann <dh.herrmann@gmail.com>
Thu, 17 Jul 2014 09:48:03 +0000 (11:48 +0200)
committerDavid Herrmann <dh.herrmann@gmail.com>
Thu, 17 Jul 2014 09:48:39 +0000 (11:48 +0200)
I dropped the cleanup-helper before pushing so use _cleanup_() directly.

src/nspawn/nspawn.c

index e75cc28..657512d 100644 (file)
@@ -3073,7 +3073,7 @@ int main(int argc, char *argv[]) {
 
         for (;;) {
                 ContainerStatus container_status;
-                _barrier_destroy_ Barrier barrier = { };
+                _cleanup_(barrier_destroy) Barrier barrier = { };
                 struct sigaction sa = {
                         .sa_handler = nop_handler,
                         .sa_flags = SA_NOCLDSTOP,