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/udev-builtin-hwdb.c | |
parent | 187e1d977ab330918859e5cec0f814bd7752118d (diff) | |
download | systemd-2024ed616e91964ceadbb8c2ef460cd499018833.tar.gz |
udev: drop unused udev struct
Diffstat (limited to 'src/udev/udev-builtin-hwdb.c')
-rw-r--r-- | src/udev/udev-builtin-hwdb.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/udev/udev-builtin-hwdb.c b/src/udev/udev-builtin-hwdb.c index 10155ad338..befb009b5c 100644 --- a/src/udev/udev-builtin-hwdb.c +++ b/src/udev/udev-builtin-hwdb.c @@ -160,7 +160,7 @@ static int builtin_hwdb(struct udev_device *dev, int argc, char *argv[], bool te /* read data from another device than the device we will store the data */ if (device) { - srcdev = udev_device_new_from_device_id(udev_device_get_udev(dev), device); + srcdev = udev_device_new_from_device_id(NULL, device); if (!srcdev) return EXIT_FAILURE; } @@ -171,7 +171,7 @@ static int builtin_hwdb(struct udev_device *dev, int argc, char *argv[], bool te } /* called at udev startup and reload */ -static int builtin_hwdb_init(struct udev *udev) { +static int builtin_hwdb_init(void) { int r; if (hwdb) @@ -185,12 +185,12 @@ static int builtin_hwdb_init(struct udev *udev) { } /* called on udev shutdown and reload request */ -static void builtin_hwdb_exit(struct udev *udev) { +static void builtin_hwdb_exit(void) { hwdb = sd_hwdb_unref(hwdb); } /* called every couple of seconds during event activity; 'true' if config has changed */ -static bool builtin_hwdb_validate(struct udev *udev) { +static bool builtin_hwdb_validate(void) { return hwdb_validate(hwdb); } |