From 2024ed616e91964ceadbb8c2ef460cd499018833 Mon Sep 17 00:00:00 2001 From: Yu Watanabe Date: Wed, 22 Aug 2018 19:57:32 +0900 Subject: udev: drop unused udev struct --- src/udev/udev-builtin-kmod.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/udev/udev-builtin-kmod.c') diff --git a/src/udev/udev-builtin-kmod.c b/src/udev/udev-builtin-kmod.c index f148d9c5f6..9436126dd8 100644 --- a/src/udev/udev-builtin-kmod.c +++ b/src/udev/udev-builtin-kmod.c @@ -39,7 +39,7 @@ static int builtin_kmod(struct udev_device *dev, int argc, char *argv[], bool te } /* called at udev startup and reload */ -static int builtin_kmod_init(struct udev *udev) { +static int builtin_kmod_init(void) { if (ctx) return 0; @@ -48,19 +48,19 @@ static int builtin_kmod_init(struct udev *udev) { return -ENOMEM; log_debug("Load module index"); - kmod_set_log_fn(ctx, udev_kmod_log, udev); + kmod_set_log_fn(ctx, udev_kmod_log, NULL); kmod_load_resources(ctx); return 0; } /* called on udev shutdown and reload request */ -static void builtin_kmod_exit(struct udev *udev) { +static void builtin_kmod_exit(void) { log_debug("Unload module index"); ctx = kmod_unref(ctx); } /* called every couple of seconds during event activity; 'true' if config has changed */ -static bool builtin_kmod_validate(struct udev *udev) { +static bool builtin_kmod_validate(void) { log_debug("Validate module index"); if (!ctx) return false; -- cgit v1.2.1