aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2020-12-29 16:55:59 +0100
committerDenys Vlasenko <vda.linux@googlemail.com>2020-12-29 17:02:06 +0100
commitfecb1693ccef88710fbb2de86d0f92bc2c76153f (patch)
tree08afc0daad6bc625baa71ee2f87dd22b20a2b791
parent40f9fe21600a834fdcf1f26e9374fd21cd3be5fb (diff)
downloadbusybox-w32-fecb1693ccef88710fbb2de86d0f92bc2c76153f.tar.gz
busybox-w32-fecb1693ccef88710fbb2de86d0f92bc2c76153f.tar.bz2
busybox-w32-fecb1693ccef88710fbb2de86d0f92bc2c76153f.zip
modprobe-small: convert to new recursive_action() API
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r--modutils/modprobe-small.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/modutils/modprobe-small.c b/modutils/modprobe-small.c
index 18cfac481..db44a2ed0 100644
--- a/modutils/modprobe-small.c
+++ b/modutils/modprobe-small.c
@@ -377,11 +377,11 @@ static int parse_module(module_info *info, const char *pathname)
377 return info->open_read_failed; 377 return info->open_read_failed;
378} 378}
379 379
380static FAST_FUNC int fileAction(const char *pathname, 380static FAST_FUNC int fileAction(struct recursive_state *state,
381 struct stat *sb UNUSED_PARAM, 381 const char *pathname,
382 void *modname_to_match, 382 struct stat *sb UNUSED_PARAM)
383 int depth UNUSED_PARAM)
384{ 383{
384 const char *modname_to_match = state->userData;
385 int cur; 385 int cur;
386 const char *fname; 386 const char *fname;
387 bool is_remove = (ENABLE_RMMOD && ONLY_APPLET) 387 bool is_remove = (ENABLE_RMMOD && ONLY_APPLET)