summaryrefslogtreecommitdiff
path: root/fslsfonts.c
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-10 22:44:16 -0800
committerAlan Coopersmith <alan.coopersmith@oracle.com>2011-11-10 23:04:15 -0800
commit1195e8cecb25b3b3e64a3ef7cfdc84e65caf57d7 (patch)
tree425c2d8d2ac9cffebb171c6bca4c2e2983e0925d /fslsfonts.c
parentb630fe37ae21678464186916a15bf8c99f65b896 (diff)
Fix gcc warning: cast discards qualifiers from pointer target type
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'fslsfonts.c')
-rw-r--r--fslsfonts.c4
1 files 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++;