aboutsummaryrefslogtreecommitdiffstats
path: root/src
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
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')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/xfont.c5
2 files changed, 7 insertions, 2 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index cfabe846422..96458770122 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
12012-07-06 Paul Eggert <eggert@cs.ucla.edu>
2
3 * xfont.c (compare_font_names): Redo to omit the need for casts.
4
12012-07-06 Andreas Schwab <schwab@linux-m68k.org> 52012-07-06 Andreas Schwab <schwab@linux-m68k.org>
2 6
3 * xfns.c (Fx_change_window_property): Doc fix. 7 * xfns.c (Fx_change_window_property): Doc fix.
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