summaryrefslogtreecommitdiff
path: root/fc-cat
diff options
context:
space:
mode:
authorPatrick Lam <plam@MIT.EDU>2005-12-07 03:55:25 +0000
committerPatrick Lam <plam@MIT.EDU>2005-12-07 03:55:25 +0000
commit982b598278315de60721740047a1b57f4a5895b8 (patch)
tree55998383e0f7a6ed33352e2a865f091b85c7bf3a /fc-cat
parentc6103dfb22de0664a6ab164d90d6959551e301c5 (diff)
Fix warnings.
Diffstat (limited to 'fc-cat')
-rw-r--r--fc-cat/fc-cat.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/fc-cat/fc-cat.c b/fc-cat/fc-cat.c
index 9fb930bb..1414bc89 100644
--- a/fc-cat/fc-cat.c
+++ b/fc-cat/fc-cat.c
@@ -78,6 +78,9 @@ extern int optind, opterr, optopt;
#define PUTC(c,f) putc(c,f)
#endif
+FcBool
+FcCachePrintSet (FcFontSet *set, FcStrSet *dirs, char *cache_file);
+
static FcBool
FcCacheWriteChars (FILE *f, const FcChar8 *chars)
{
@@ -169,11 +172,9 @@ FcCacheGlobalFileReadAndPrint (FcFontSet * set, FcStrSet *dirs, char * dir, char
{
char name_buf[8192];
int fd;
- FcGlobalCacheDir *d, *next;
char * current_arch_machine_name;
char candidate_arch_machine_name[9+MACHINE_SIGNATURE_SIZE];
off_t current_arch_start = 0;
- char subdirName[FC_MAX_FILE_LEN + 1 + 12 + 1];
if (!cache_file)
goto bail;
@@ -194,8 +195,6 @@ FcCacheGlobalFileReadAndPrint (FcFontSet * set, FcStrSet *dirs, char * dir, char
while (1)
{
- off_t targ;
-
FcCacheReadString (fd, name_buf, sizeof (name_buf));
if (!strlen(name_buf))
break;
@@ -343,8 +342,6 @@ FcCachePrintSet (FcFontSet *set, FcStrSet *dirs, char *cache_file)
bail3:
FcStrListDone (list);
bail2:
-bail1:
-bail0:
return FcFalse;
}