mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
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:
committed by
Daniel Stone
parent
32c85ad4b8
commit
ee0b1b5644
@@ -120,7 +120,7 @@ FreeList(const char ***list, int *lines)
|
||||
int i;
|
||||
|
||||
for (i = 0; i < *lines; i++) {
|
||||
free((*list)[i]);
|
||||
free((char *)((*list)[i]));
|
||||
}
|
||||
free(*list);
|
||||
*list = NULL;
|
||||
|
||||
Reference in New Issue
Block a user