summaryrefslogtreecommitdiff
path: root/src/xfont.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-07-06 13:49:23 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2012-07-06 13:49:23 -0700
commitfd573f31dcaec9cd5170ba33af10d7c71c56822c (patch)
tree6e8a4028866bd61e028e3deb265267fd2bb84d5e /src/xfont.c
parentfca8d6b6871079195376ff9db564f659215d7295 (diff)
downloademacs-fd573f31dcaec9cd5170ba33af10d7c71c56822c.tar.gz
* xfont.c (compare_font_names): Redo to omit the need for casts.
Diffstat (limited to 'src/xfont.c')
-rw-r--r--src/xfont.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/xfont.c b/src/xfont.c
index cc06e27fe02..b7a1e06199e 100644
--- a/src/xfont.c
+++ b/src/xfont.c
@@ -164,8 +164,9 @@ xfont_get_cache (FRAME_PTR f)
static int
compare_font_names (const void *name1, const void *name2)
{
- return xstrcasecmp (*(const char **) name1,
- *(const char **) name2);
+ char *const *n1 = name1;
+ char *const *n2 = name2;
+ return xstrcasecmp (*n1, *n2);
}
/* Decode XLFD as iso-8859-1 into OUTPUT, and return the byte length