diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-08-22 19:57:32 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-09-10 18:27:36 +0900 |
commit | 2024ed616e91964ceadbb8c2ef460cd499018833 (patch) | |
tree | 90bf70d20a820f5219d94bb4d9aefd7795a49588 /src/udev/udevadm-trigger.c | |
parent | 187e1d977ab330918859e5cec0f814bd7752118d (diff) | |
download | systemd-2024ed616e91964ceadbb8c2ef460cd499018833.tar.gz systemd-2024ed616e91964ceadbb8c2ef460cd499018833.tar.bz2 systemd-2024ed616e91964ceadbb8c2ef460cd499018833.zip |
udev: drop unused udev struct
Diffstat (limited to 'src/udev/udevadm-trigger.c')
-rw-r--r-- | src/udev/udevadm-trigger.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/udev/udevadm-trigger.c b/src/udev/udevadm-trigger.c index 5d90911894..8a936cc941 100644 --- a/src/udev/udevadm-trigger.c +++ b/src/udev/udevadm-trigger.c @@ -88,7 +88,7 @@ static void help(void) { , program_invocation_short_name); } -static int adm_trigger(struct udev *udev, int argc, char *argv[]) { +static int adm_trigger(int argc, char *argv[]) { enum { ARG_NAME = 0x100, }; @@ -126,7 +126,7 @@ static int adm_trigger(struct udev *udev, int argc, char *argv[]) { _cleanup_set_free_free_ Set *settle_set = NULL; int c, r; - udev_enumerate = udev_enumerate_new(udev); + udev_enumerate = udev_enumerate_new(NULL); if (!udev_enumerate) return 1; @@ -215,7 +215,7 @@ static int adm_trigger(struct udev *udev, int argc, char *argv[]) { case 'b': { _cleanup_(udev_device_unrefp) struct udev_device *dev; - dev = find_device(udev, optarg, "/sys"); + dev = find_device(optarg, "/sys"); if (!dev) { log_error("unable to open the device '%s'", optarg); return 2; @@ -235,7 +235,7 @@ static int adm_trigger(struct udev *udev, int argc, char *argv[]) { case ARG_NAME: { _cleanup_(udev_device_unrefp) struct udev_device *dev; - dev = find_device(udev, optarg, "/dev/"); + dev = find_device(optarg, "/dev/"); if (!dev) { log_error("unable to open the device '%s'", optarg); return 2; @@ -265,7 +265,7 @@ static int adm_trigger(struct udev *udev, int argc, char *argv[]) { for (; optind < argc; optind++) { _cleanup_(udev_device_unrefp) struct udev_device *dev; - dev = find_device(udev, argv[optind], NULL); + dev = find_device(argv[optind], NULL); if (!dev) { log_error("unable to open the device '%s'", argv[optind]); return 2; @@ -285,7 +285,7 @@ static int adm_trigger(struct udev *udev, int argc, char *argv[]) { return 1; } - udev_monitor = udev_monitor_new_from_netlink(udev, "udev"); + udev_monitor = udev_monitor_new_from_netlink(NULL, "udev"); if (!udev_monitor) { log_error("error: unable to create netlink socket"); return 3; |