]> git.wh0rd.org - fontconfig.git/blobdiff - src/fccache.c
Automatically remove invalid cache files.
[fontconfig.git] / src / fccache.c
index 646f03af8dacb42e9b1275288f630a6bb7265212..5012581aa66e6d5bf7f6ee8043766e0e94979c86 100644 (file)
@@ -241,8 +241,8 @@ FcDirCacheProcess (FcConfig *config, const FcChar8 *dir,
     return ret;
 }
 
-static FcBool
-FcCacheLoad (int fd, off_t size, void *closure)
+FcBool
+FcDirCacheLoad (int fd, off_t size, void *closure)
 {
     FcCache    *cache;
     FcBool     allocated = FcFalse;
@@ -308,7 +308,7 @@ FcDirCacheMap (const FcChar8 *dir, FcConfig *config)
     FcCache *cache = NULL;
 
     if (!FcDirCacheProcess (config, dir,
-                           FcCacheLoad,
+                           FcDirCacheLoad,
                            &cache))
        return NULL;
     return cache;