]> git.wh0rd.org - fontconfig.git/commitdiff
FcStat: change to FcChar8 for first arg
authorMike Frysinger <vapier@gentoo.org>
Mon, 7 Nov 2011 20:21:51 +0000 (15:21 -0500)
committerMike Frysinger <vapier@gentoo.org>
Mon, 7 Nov 2011 20:29:31 +0000 (15:29 -0500)
This shouldn't affect the ABI, makes FcStat more like the rest of the
fontconfig API, and fixes warnings where we pass FcChar8* pointers in
to this func from other places.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>
src/fccache.c
src/fcint.h

index 2fd74549ac8f236f7b5dd457a4c709ad7e6c4a3a..c38a7050edd837cba58165ab42614ec7224d85df 100644 (file)
@@ -87,7 +87,7 @@ typedef __int64 INT64;
  */
 
 int
-FcStat (const char *file, struct stat *statb)
+FcStat (const FcChar8 *file, struct stat *statb)
 {
     WIN32_FILE_ATTRIBUTE_DATA wfad;
     char full_path_name[MAX_PATH];
@@ -136,7 +136,7 @@ FcStat (const char *file, struct stat *statb)
 #else
 
 int
-FcStat (const char *file, struct stat *statb)
+FcStat (const FcChar8 *file, struct stat *statb)
 {
   return stat ((char *) file, statb);
 }
index 83a7a435be4984b27e3de80cc5599e602cca966f..8179195fc77177d89a8df154b8c3399201167930 100644 (file)
@@ -545,7 +545,7 @@ FcPrivate void
 FcDirCacheReference (FcCache *cache, int nref);
 
 FcPrivate int
-FcStat (const char *file, struct stat *statb);
+FcStat (const FcChar8 *file, struct stat *statb);
 
 /* fccfg.c */