summaryrefslogtreecommitdiff
path: root/hw/xfree86
diff options
context:
space:
mode:
authorAdam Jackson <ajax@redhat.com>2010-10-19 11:59:18 -0400
committerDaniel Stone <daniel@fooishbar.org>2010-12-31 12:36:44 +0000
commitee0b1b564413327c73bb8cdbabb76667ca4a744c (patch)
treea66658d089d1ba72df1c8be97eed1190770090c6 /hw/xfree86
parent32c85ad4b8fe27fed0c494f69c39e3902ce57b1b (diff)
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>
Diffstat (limited to 'hw/xfree86')
-rw-r--r--hw/xfree86/common/xf86AutoConfig.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hw/xfree86/common/xf86AutoConfig.c b/hw/xfree86/common/xf86AutoConfig.c
index eb61f879a..5c6e7210c 100644
--- a/hw/xfree86/common/xf86AutoConfig.c
+++ b/hw/xfree86/common/xf86AutoConfig.c
@@ -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;