summaryrefslogtreecommitdiff
path: root/fc-match
diff options
context:
space:
mode:
authorPatrick Lam <plam@MIT.EDU>2005-09-11 02:16:09 +0000
committerPatrick Lam <plam@MIT.EDU>2005-09-11 02:16:09 +0000
commit8245771d5a42dac36024411a0da047b9a7dc42c6 (patch)
tree38c715c1dfa12ecc4d0e0773b0f377ade54433f0 /fc-match
parent8cb4c56d9925bba17bce32c12f7e09d8f36b2e53 (diff)
Merge with HEAD and finish the GCC 4 cleanups (no more warnings!)
Diffstat (limited to 'fc-match')
-rw-r--r--fc-match/fc-match.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fc-match/fc-match.c b/fc-match/fc-match.c
index 961a7a95..2a797227 100644
--- a/fc-match/fc-match.c
+++ b/fc-match/fc-match.c
@@ -167,17 +167,17 @@ main (int argc, char **argv)
FcChar8 *file;
if (FcPatternGetString (fs->fonts[j], FC_FILE, 0, &file) != FcResultMatch)
- file = "<unknown filename>";
+ file = (FcChar8 *) "<unknown filename>";
else
{
- FcChar8 *slash = strrchr (file, '/');
+ FcChar8 *slash = (FcChar8 *) strrchr ((char *) file, '/');
if (slash)
file = slash+1;
}
if (FcPatternGetString (fs->fonts[j], FC_FAMILY, 0, &family) != FcResultMatch)
- family = "<unknown family>";
+ family = (FcChar8 *) "<unknown family>";
if (FcPatternGetString (fs->fonts[j], FC_STYLE, 0, &style) != FcResultMatch)
- file = "<unknown style>";
+ file = (FcChar8 *) "<unknown style>";
printf ("%s: \"%s\" \"%s\"\n", file, family, style);
}