}
static struct kmod_list *add_blacklist(struct kmod_ctx *ctx,
- struct kmod_list *blacklists,
+ struct kmod_list *blacklist,
const char *modname)
{
- struct kmod_blacklist *blacklist;
char *p;
DBG(ctx, "modname=%s\n", modname);
p = strdup(modname);
- return kmod_list_append(blacklists, p);
+ return kmod_list_append(blacklist, p);
}
static struct kmod_list *free_blacklist(struct kmod_ctx *ctx,
struct kmod_list **list)
{
char *fn;
- int err, nmatch = 0, i;
+ int err, nmatch = 0;
struct index_file *idx;
struct index_value *realnames, *realname;
- struct kmod_list *l;
if (asprintf(&fn, "%s/%s.bin", ctx->dirname, file) < 0)
return -ENOMEM;
int kmod_lookup_alias_from_moddep_file(struct kmod_ctx *ctx, const char *name,
struct kmod_list **list)
{
- char *fn, *line, *p;
+ char *fn, *line;
struct index_file *idx;
int n = 0;