modprobe-small: convert to new recursive_action() API
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
This commit is contained in:
parent
40f9fe2160
commit
fecb1693cc
@ -377,11 +377,11 @@ static int parse_module(module_info *info, const char *pathname)
|
|||||||
return info->open_read_failed;
|
return info->open_read_failed;
|
||||||
}
|
}
|
||||||
|
|
||||||
static FAST_FUNC int fileAction(const char *pathname,
|
static FAST_FUNC int fileAction(struct recursive_state *state,
|
||||||
struct stat *sb UNUSED_PARAM,
|
const char *pathname,
|
||||||
void *modname_to_match,
|
struct stat *sb UNUSED_PARAM)
|
||||||
int depth UNUSED_PARAM)
|
|
||||||
{
|
{
|
||||||
|
const char *modname_to_match = state->userData;
|
||||||
int cur;
|
int cur;
|
||||||
const char *fname;
|
const char *fname;
|
||||||
bool is_remove = (ENABLE_RMMOD && ONLY_APPLET)
|
bool is_remove = (ENABLE_RMMOD && ONLY_APPLET)
|
||||||
|
Loading…
Reference in New Issue
Block a user