From 48e0509f932dde5c847dfc0e9f5ef92d69abe2fc Mon Sep 17 00:00:00 2001 From: Carl Worth Date: Sat, 9 Sep 2006 16:04:19 -0700 Subject: [PATCH] test/bitmap-font: Fix arguments to FcFreeTypeQuery to avoid warnings. (cherry picked from 416e94532b1584b2ff23dd270c70ab900d55c326 commit) --- test/bitmap-font.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/bitmap-font.c b/test/bitmap-font.c index 7e3c79e7d..d38243afa 100644 --- a/test/bitmap-font.c +++ b/test/bitmap-font.c @@ -53,7 +53,7 @@ draw (cairo_t *cr, int width, int height) cairo_status_t status; const char *srcdir = getenv ("srcdir"); char *filename; - int *face_count; + int face_count; struct stat stat_buf; if (! srcdir) @@ -66,7 +66,7 @@ draw (cairo_t *cr, int width, int height) return CAIRO_TEST_FAILURE; } - pattern = FcFreeTypeQuery (filename, 0, NULL, &face_count); + pattern = FcFreeTypeQuery ((unsigned char *)filename, 0, NULL, &face_count); free (filename); if (! pattern) { cairo_test_log ("FcFreeTypeQuery failed.\n");