[prev in list] [next in list] [prev in thread] [next in thread]
List: busybox-cvs
Subject: [git commit] modprobe-small: convert to new recursive_action() API
From: Denys Vlasenko <vda.linux () googlemail ! com>
Date: 2020-12-29 16:02:06
Message-ID: 20201229154448.2C4C782877 () busybox ! osuosl ! org
[Download RAW message or body]
commit: https://git.busybox.net/busybox/commit/?id=fecb1693ccef88710fbb2de86d0f92bc2c76153f
branch: https://git.busybox.net/busybox/commit/?id=refs/heads/master
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
---
modutils/modprobe-small.c | 8 ++++----
1 file 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)
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)
_______________________________________________
busybox-cvs mailing list
busybox-cvs@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic