]> git.wh0rd.org - fontconfig.git/blobdiff - fc-cache/fc-cache.c
FcStat: export for people to use
[fontconfig.git] / fc-cache / fc-cache.c
index 98039f77ff778aaa1fd583bf5e066b42c195b0bf..64eb22a92eed61b0a3dd0937dd7816bbe7a57fd8 100644 (file)
@@ -154,7 +154,7 @@ scanDirs (FcStrList *list, FcConfig *config, FcBool force, FcBool really_force,
            continue;
        }
 
-       if (stat ((char *) dir, &statb) == -1)
+       if (FcStat (dir, &statb) == -1)
        {
            switch (errno) {
            case ENOENT:
@@ -304,7 +304,7 @@ cleanCacheDirectory (FcConfig *config, FcChar8 *dir, FcBool verbose)
        else
        {
            target_dir = FcCacheDir (cache);
-           if (stat ((char *) target_dir, &target_stat) < 0)
+           if (FcStat (target_dir, &target_stat) < 0)
            {
                if (verbose)
                    printf ("%s: %s: missing directory: %s \n",