X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=fc-cat%2Ffc-cat.c;h=8d19c615433737ac9808a2d190f0e795e5226334;hb=d0471dd2faca37f7ee5997ad9db8278db0e99206;hp=5ee947ec24938c0d1ba5326bfe5090c32dc3b2dc;hpb=e61eba94efffbdbec6f9e08f3fb04b75f0ba2a3f;p=fontconfig.git diff --git a/fc-cat/fc-cat.c b/fc-cat/fc-cat.c index 5ee947e..8d19c61 100644 --- a/fc-cat/fc-cat.c +++ b/fc-cat/fc-cat.c @@ -227,7 +227,7 @@ cache_print_set (FcFontSet *set, FcStrSet *dirs, const FcChar8 *base_name, FcBoo FcPattern *font = set->fonts[n]; FcChar8 *s; - s = FcPatternFormat (font, "%{=fccat}\n"); + s = FcPatternFormat (font, (const FcChar8 *) "%{=fccat}\n"); if (s) { printf ("%s", s); @@ -349,10 +349,10 @@ main (int argc, char **argv) FcChar8 *cache_file = NULL; struct stat file_stat; - if (FcFileIsDir (arg)) + if (FcFileIsDir2 (config, arg)) cache = FcDirCacheLoad (arg, config, &cache_file); else - cache = FcDirCacheLoadFile (arg, &file_stat); + cache = FcDirCacheLoadFile2 (arg, config, &file_stat); if (!cache) { perror ((char *) arg);