summaryrefslogtreecommitdiff
path: root/ident.c
diff options
context:
space:
mode:
Diffstat (limited to 'ident.c')
-rw-r--r--ident.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/ident.c b/ident.c
index 6d3cff3..4a1d1eb 100644
--- a/ident.c
+++ b/ident.c
@@ -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;
}