diff options
author | Peter Hutterer <peter.hutterer@who-t.net> | 2018-07-31 11:45:51 +1000 |
---|---|---|
committer | Peter Hutterer <peter.hutterer@who-t.net> | 2018-08-01 08:31:33 +1000 |
commit | 0c993094a8899b488ba4acbb888c176f99da0849 (patch) | |
tree | b77f5b086bb87c1632b8fdc1871367760cd942ae /read.c | |
parent | 6c37ebcfd8992fdf88da225bd1de7ca40dd69240 (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.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) { |