From 8245771d5a42dac36024411a0da047b9a7dc42c6 Mon Sep 17 00:00:00 2001 From: Patrick Lam Date: Sun, 11 Sep 2005 02:16:09 +0000 Subject: Merge with HEAD and finish the GCC 4 cleanups (no more warnings!) --- fc-glyphname/fc-glyphname.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'fc-glyphname') diff --git a/fc-glyphname/fc-glyphname.c b/fc-glyphname/fc-glyphname.c index 5b38c72..2c69c2b 100644 --- a/fc-glyphname/fc-glyphname.c +++ b/fc-glyphname/fc-glyphname.c @@ -105,7 +105,7 @@ scan (FILE *f, char *filename) gn = FcAllocGlyphName ((FcChar32) ucs, (FcChar8 *) name); if (!gn) fatal (filename, lineno, "out of memory"); - len = strlen ((FcChar8 *) name); + len = strlen (name); if (len > max_name_len) max_name_len = len; raw[nraw++] = gn; @@ -286,7 +286,7 @@ main (int argc, char **argv) for (i = 0; i < nraw; i++) printf ("static struct { FcChar32 ucs; FcChar8 name[%d]; }" " glyph%d = { 0x%lx, \"%s\" };\n", - (int) strlen (raw[i]->name) + 1, + (int) strlen ((char *) raw[i]->name) + 1, i, (unsigned long) raw[i]->ucs, raw[i]->name); /* -- cgit v1.2.3