chiark / gitweb /
udev: make use of new one_zero() helper where appropriate
authorLennart Poettering <lennart@poettering.net>
Tue, 13 Jan 2015 19:16:39 +0000 (20:16 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 13 Jan 2015 19:55:13 +0000 (20:55 +0100)
src/udev/udev-builtin-btrfs.c

index 74b2209..3643596 100644 (file)
@@ -49,7 +49,7 @@ static int builtin_btrfs(struct udev_device *dev, int argc, char *argv[], bool t
         if (err < 0)
                 return EXIT_FAILURE;
 
-        udev_builtin_add_property(dev, test, "ID_BTRFS_READY", err == 0 ? "1" : "0");
+        udev_builtin_add_property(dev, test, "ID_BTRFS_READY", one_zero(err == 0));
         return EXIT_SUCCESS;
 }