summaryrefslogtreecommitdiffstats
path: root/src/udev/udev-builtin-btrfs.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-10-13 18:22:14 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-10-23 11:28:38 +0200
commit3fc2e9a247cd6e2725168d49b908b6a0821c2516 (patch)
tree386f7ce6a92c1e795bb10a7a16321011d7e67179 /src/udev/udev-builtin-btrfs.c
parentudev: replace udev_device by sd_device in udev-builtin-usb_id.c (diff)
downloadsystemd-3fc2e9a247cd6e2725168d49b908b6a0821c2516.tar.xz
systemd-3fc2e9a247cd6e2725168d49b908b6a0821c2516.zip
udev: replace udev_device by sd_device from prototype of udev builtin commands
Diffstat (limited to 'src/udev/udev-builtin-btrfs.c')
-rw-r--r--src/udev/udev-builtin-btrfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/udev/udev-builtin-btrfs.c b/src/udev/udev-builtin-btrfs.c
index 4d6787e3af..93fc29f56c 100644
--- a/src/udev/udev-builtin-btrfs.c
+++ b/src/udev/udev-builtin-btrfs.c
@@ -15,7 +15,7 @@
#include "udev-builtin.h"
#include "util.h"
-static int builtin_btrfs(struct udev_device *dev, int argc, char *argv[], bool test) {
+static int builtin_btrfs(sd_device *dev, int argc, char *argv[], bool test) {
struct btrfs_ioctl_vol_args args = {};
_cleanup_close_ int fd = -1;
int err;
@@ -32,7 +32,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->device, test, "ID_BTRFS_READY", one_zero(err == 0));
+ udev_builtin_add_property(dev, test, "ID_BTRFS_READY", one_zero(err == 0));
return EXIT_SUCCESS;
}