diff options
Diffstat (limited to 'ident.c')
-rw-r--r-- | ident.c | 8 |
1 files changed, 3 insertions, 5 deletions
@@ -355,11 +355,10 @@ static char * getKeyword(fontFile *f, int *eol) { static char keyword[NKEY + 1]; - int c, i; + int i = 0; - i = 0; while (i < NKEY) { - c = fontFileGetc(f); + int c = fontFileGetc(f); if (c == ' ' || c == '\n') { if (i <= 0) return NULL; @@ -437,7 +436,6 @@ static int bdfIdentify(fontFile *f, char **name) { char *k; - int rc; int eol; /* bitmapIdentify already read "STAR", so we need to check for @@ -449,7 +447,7 @@ bdfIdentify(fontFile *f, char **name) goto fail; while (1) { if (!eol) { - rc = bdfskip(f); + int rc = bdfskip(f); if (rc < 0) goto fail; } |