loader: warning fix
loadmod.c: In function ‘FreeSubdirs’: loadmod.c:377: warning: passing argument 1 of ‘free’ discards qualifiers from pointer target type /usr/include/stdlib.h:488: note: expected ‘void *’ but argument is of type ‘const char *’ Signed-off-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Daniel Stone <daniel@fooishbar.org>
This commit is contained in:
parent
ee0b1b5644
commit
a298d044f9
|
@ -374,7 +374,7 @@ FreeSubdirs(const char **subdirs)
|
|||
|
||||
if (subdirs) {
|
||||
for (s = subdirs; *s; s++)
|
||||
free(*s);
|
||||
free((char *)*s);
|
||||
free(subdirs);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user