diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-08-22 12:57:32 +0200 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2018-09-10 11:27:36 +0200 |
commit | 2024ed616e91964ceadbb8c2ef460cd499018833 (patch) | |
tree | 90bf70d20a820f5219d94bb4d9aefd7795a49588 /src/udev/udev-builtin-kmod.c | |
parent | udev: drop unused udev_watch struct (diff) | |
download | systemd-2024ed616e91964ceadbb8c2ef460cd499018833.tar.xz systemd-2024ed616e91964ceadbb8c2ef460cd499018833.zip |
udev: drop unused udev struct
Diffstat (limited to 'src/udev/udev-builtin-kmod.c')
-rw-r--r-- | src/udev/udev-builtin-kmod.c | 8 |
1 files changed, 4 insertions, 4 deletions
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; |