summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-01-13 20:16:39 +0100
committerLennart Poettering <lennart@poettering.net>2015-01-13 20:55:13 +0100
commitcd1ddd542136c49831fa34de49321153dcc291e2 (patch)
tree6d8082209fb4cdbda910486ada507f2dd1b9f7ad /src
parent769d324c99aab129148bd25f5f663ef441287d86 (diff)
udev: make use of new one_zero() helper where appropriate
Diffstat (limited to 'src')
-rw-r--r--src/udev/udev-builtin-btrfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udev-builtin-btrfs.c b/src/udev/udev-builtin-btrfs.c
index 74b220928e..3643596a70 100644
--- a/src/udev/udev-builtin-btrfs.c
+++ b/src/udev/udev-builtin-btrfs.c
@@ -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;
}