modprobe-small: convert to new recursive_action() API
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
diff --git a/modutils/modprobe-small.c b/modutils/modprobe-small.c
index 18cfac4..db44a2e 100644
--- a/modutils/modprobe-small.c
+++ b/modutils/modprobe-small.c
@@ -377,11 +377,11 @@
return info->open_read_failed;
}
-static FAST_FUNC int fileAction(const char *pathname,
- struct stat *sb UNUSED_PARAM,
- void *modname_to_match,
- int depth UNUSED_PARAM)
+static FAST_FUNC int fileAction(struct recursive_state *state,
+ const char *pathname,
+ struct stat *sb UNUSED_PARAM)
{
+ const char *modname_to_match = state->userData;
int cur;
const char *fname;
bool is_remove = (ENABLE_RMMOD && ONLY_APPLET)