summaryrefslogtreecommitdiff
path: root/fslsfonts.c
diff options
context:
space:
mode:
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++;