summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2015-01-13 20:16:39 +0100
committerAnthony G. Basile <blueness@gentoo.org>2015-01-17 09:00:33 -0500
commit19a6261c64c1629fb92234d19ba4ed4ae8304cee (patch)
tree49eaa4d7595a8961b2485b237f207fe68f85dbda
parent79332668e3d8eff6de9e916dd3f26944d35ecb82 (diff)
udev: make use of new one_zero() helper where appropriate
Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
-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;
}