test/bitmap-font: Fix arguments to FcFreeTypeQuery to avoid warnings.

(cherry picked from 416e94532b commit)
This commit is contained in:
Carl Worth 2006-09-09 16:04:19 -07:00 committed by Behdad Esfahbod
parent baca4a50ac
commit 48e0509f93

View file

@ -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");