FcPattern *font = set->fonts[n];
FcChar8 *s;
- s = FcPatternFormat (font, "%{=fccat}\n");
+ s = FcPatternFormat (font, (const FcChar8 *) "%{=fccat}\n");
if (s)
{
printf ("%s", s);
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);