FcStat: change to FcChar8 for first arg

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>
This commit is contained in:
Mike Frysinger 2011-11-07 15:21:51 -05:00
parent e3a66c2937
commit 647569d029
2 changed files with 3 additions and 3 deletions

View 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);
}

View 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 */