summaryrefslogtreecommitdiff
path: root/src/udev/udev-builtin.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-10-14 01:22:14 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-10-23 18:28:38 +0900
commit3fc2e9a247cd6e2725168d49b908b6a0821c2516 (patch)
tree386f7ce6a92c1e795bb10a7a16321011d7e67179 /src/udev/udev-builtin.c
parent71bd61c5765d3c1b7efef910f83d2712ae02a68f (diff)
downloadsystemd-3fc2e9a247cd6e2725168d49b908b6a0821c2516.tar.gz
udev: replace udev_device by sd_device from prototype of udev builtin commands
Diffstat (limited to 'src/udev/udev-builtin.c')
-rw-r--r--src/udev/udev-builtin.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/udev/udev-builtin.c b/src/udev/udev-builtin.c
index d1f58deaf5..88dd4e99e6 100644
--- a/src/udev/udev-builtin.c
+++ b/src/udev/udev-builtin.c
@@ -5,6 +5,7 @@
#include <string.h>
#include "device-private.h"
+#include "libudev-device-internal.h"
#include "string-util.h"
#include "strv.h"
#include "udev-builtin.h"
@@ -115,7 +116,7 @@ int udev_builtin_run(struct udev_device *dev, enum udev_builtin_cmd cmd, const c
/* we need '0' here to reset the internal state */
optind = 0;
- return builtins[cmd]->cmd(dev, strv_length(argv), argv, test);
+ return builtins[cmd]->cmd(dev->device, strv_length(argv), argv, test);
}
int udev_builtin_add_property(sd_device *dev, bool test, const char *key, const char *val) {