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-control.c | |
parent | 187e1d977ab330918859e5cec0f814bd7752118d (diff) | |
download | systemd-2024ed616e91964ceadbb8c2ef460cd499018833.tar.gz |
udev: drop unused udev struct
Diffstat (limited to 'src/udev/udevadm-control.c')
-rw-r--r-- | src/udev/udevadm-control.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/udev/udevadm-control.c b/src/udev/udevadm-control.c index fb8ebdd485..14b71cf6e8 100644 --- a/src/udev/udevadm-control.c +++ b/src/udev/udevadm-control.c @@ -40,7 +40,7 @@ static void print_help(void) { , program_invocation_short_name); } -static int adm_control(struct udev *udev, int argc, char *argv[]) { +static int adm_control(int argc, char *argv[]) { _cleanup_(udev_ctrl_unrefp) struct udev_ctrl *uctrl = NULL; int timeout = 60; int rc = 1, c; @@ -64,7 +64,7 @@ static int adm_control(struct udev *udev, int argc, char *argv[]) { if (must_be_root() < 0) return 1; - uctrl = udev_ctrl_new(udev); + uctrl = udev_ctrl_new(); if (uctrl == NULL) return 2; |