config: warning fixes

xf86AutoConfig.c: In function ‘FreeList’:
xf86AutoConfig.c:123: 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:
Adam Jackson 2010-10-19 11:59:18 -04:00 committed by Daniel Stone
parent 32c85ad4b8
commit ee0b1b5644

View File

@ -120,7 +120,7 @@ FreeList(const char ***list, int *lines)
int i; int i;
for (i = 0; i < *lines; i++) { for (i = 0; i < *lines; i++) {
free((*list)[i]); free((char *)((*list)[i]));
} }
free(*list); free(*list);
*list = NULL; *list = NULL;