summaryrefslogtreecommitdiff
path: root/read.c
diff options
context:
space:
mode:
authorPeter Hutterer <peter.hutterer@who-t.net>2018-07-31 11:45:51 +1000
committerPeter Hutterer <peter.hutterer@who-t.net>2018-08-01 08:31:33 +1000
commit0c993094a8899b488ba4acbb888c176f99da0849 (patch)
treeb77f5b086bb87c1632b8fdc1871367760cd942ae /read.c
parent6c37ebcfd8992fdf88da225bd1de7ca40dd69240 (diff)
Fix shadowing i variable complaint
C99 is a magical thing! Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'read.c')
-rw-r--r--read.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/read.c b/read.c
index 98522b5..632c7e7 100644
--- a/read.c
+++ b/read.c
@@ -58,7 +58,7 @@ FT_Ensure_Inited(void)
int
readFile(char *filename, FontPtr font)
{
- int i, j, k, index;
+ int j, k, index;
int rc;
FT_Face face;
StrikePtr strike;
@@ -234,7 +234,7 @@ readFile(char *filename, FontPtr font)
return -1;
}
- for(i = 0; i < face->num_fixed_sizes; i++) {
+ for(int i = 0; i < face->num_fixed_sizes; i++) {
if(verbose_flag)
fprintf(stderr, "size %d: %dx%d\n",
i,
@@ -294,7 +294,7 @@ readFile(char *filename, FontPtr font)
FT_Done_Face(face);
j = 0;
- for(i = 0; i < FONT_CODES; i++) {
+ for(int i = 0; i < FONT_CODES; i++) {
int found = 0;
strike = font->strikes;
while(strike) {