diff options
author | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-10 22:44:16 -0800 |
---|---|---|
committer | Alan Coopersmith <alan.coopersmith@oracle.com> | 2011-11-10 23:04:15 -0800 |
commit | 1195e8cecb25b3b3e64a3ef7cfdc84e65caf57d7 (patch) | |
tree | 425c2d8d2ac9cffebb171c6bca4c2e2983e0925d | |
parent | b630fe37ae21678464186916a15bf8c99f65b896 (diff) |
Fix gcc warning: cast discards qualifiers from pointer target type
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
-rw-r--r-- | fslsfonts.c | 4 |
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++; |