aboutsummaryrefslogtreecommitdiffstats
path: root/src/xfont.c
diff options
context:
space:
mode:
authorPaul Eggert2012-07-06 13:49:23 -0700
committerPaul Eggert2012-07-06 13:49:23 -0700
commitfd573f31dcaec9cd5170ba33af10d7c71c56822c (patch)
tree6e8a4028866bd61e028e3deb265267fd2bb84d5e /src/xfont.c
parentfca8d6b6871079195376ff9db564f659215d7295 (diff)
downloademacs-fd573f31dcaec9cd5170ba33af10d7c71c56822c.tar.gz
emacs-fd573f31dcaec9cd5170ba33af10d7c71c56822c.zip
* 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)
164static int 164static int
165compare_font_names (const void *name1, const void *name2) 165compare_font_names (const void *name1, const void *name2)
166{ 166{
167 return xstrcasecmp (*(const char **) name1, 167 char *const *n1 = name1;
168 *(const char **) name2); 168 char *const *n2 = name2;
169 return xstrcasecmp (*n1, *n2);
169} 170}
170 171
171/* Decode XLFD as iso-8859-1 into OUTPUT, and return the byte length 172/* Decode XLFD as iso-8859-1 into OUTPUT, and return the byte length