diff options
| author | Paul Eggert | 2012-07-06 13:49:23 -0700 |
|---|---|---|
| committer | Paul Eggert | 2012-07-06 13:49:23 -0700 |
| commit | fd573f31dcaec9cd5170ba33af10d7c71c56822c (patch) | |
| tree | 6e8a4028866bd61e028e3deb265267fd2bb84d5e /src | |
| parent | fca8d6b6871079195376ff9db564f659215d7295 (diff) | |
| download | emacs-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/ChangeLog | 4 | ||||
| -rw-r--r-- | src/xfont.c | 5 |
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 @@ | |||
| 1 | 2012-07-06 Paul Eggert <eggert@cs.ucla.edu> | ||
| 2 | |||
| 3 | * xfont.c (compare_font_names): Redo to omit the need for casts. | ||
| 4 | |||
| 1 | 2012-07-06 Andreas Schwab <schwab@linux-m68k.org> | 5 | 2012-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) | |||
| 164 | static int | 164 | static int |
| 165 | compare_font_names (const void *name1, const void *name2) | 165 | compare_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 |