From 1195e8cecb25b3b3e64a3ef7cfdc84e65caf57d7 Mon Sep 17 00:00:00 2001 From: Alan Coopersmith Date: Thu, 10 Nov 2011 22:44:16 -0800 Subject: Fix gcc warning: cast discards qualifiers from pointer target type Signed-off-by: Alan Coopersmith --- fslsfonts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fslsfonts.c b/fslsfonts.c index f72cde6..888c9e0 100644 --- a/fslsfonts.c +++ b/fslsfonts.c @@ -265,8 +265,8 @@ get_list(const char *pattern) static int compare(const void *f1, const void *f2) { - char *p1 = ((FontList *)f1)->name, - *p2 = ((FontList *)f2)->name; + const char *p1 = ((const FontList *)f1)->name, + *p2 = ((const FontList *)f2)->name; while (*p1 && *p2 && *p1 == *p2) p1++, p2++; -- cgit v1.2.3