]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
nspawn: minor coding style tweaks to nspawn-register.c
authorLennart Poettering <lennart@poettering.net>
Wed, 28 Feb 2024 10:07:39 +0000 (11:07 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 28 Feb 2024 10:07:58 +0000 (11:07 +0100)
src/nspawn/nspawn-register.c

index 27400aa4a21fba72faaea081b34b279d4b75c069..358958b82b3d6f1b9d8e692591915e014edc2366 100644 (file)
@@ -305,7 +305,7 @@ int allocate_scope(
 
                 r = bus_append_scope_pidref(m, &pidref);
         } else
-                r = sd_bus_message_append(m, "(sv)", "PIDs", "au", 1, pid);
+                r = sd_bus_message_append(m, "(sv)", "PIDs", "au", 1, (uint32_t) pid);
         if (r < 0)
                 return bus_log_create_error(r);
 
@@ -368,7 +368,11 @@ int allocate_scope(
         if (r < 0)
                 return bus_log_parse_error(r);
 
-        r = bus_wait_for_jobs_one(w, object, BUS_WAIT_JOBS_LOG_ERROR, NULL);
+        r = bus_wait_for_jobs_one(
+                        w,
+                        object,
+                        BUS_WAIT_JOBS_LOG_ERROR,
+                        /* extra_args= */ NULL);
         if (r < 0)
                 return r;