]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
machined: use one_zero() on one more occasion 22562/head
authorLennart Poettering <lennart@poettering.net>
Fri, 18 Feb 2022 12:08:19 +0000 (13:08 +0100)
committerLennart Poettering <lennart@poettering.net>
Fri, 18 Feb 2022 12:08:31 +0000 (13:08 +0100)
src/machine/image-dbus.c

index 30e6df9f4a9177dc00ff91cfe7684d665a3caff7..1ff18697201caaaa79d89714aa004df6e298ae8e 100644 (file)
@@ -238,7 +238,7 @@ int bus_image_method_mark_read_only(
         const char *details[] = {
                 "image", image->name,
                 "verb", "mark_read_only",
-                "read_only", (read_only?"1":"0"),
+                "read_only", one_zero(read_only),
                 NULL
         };