[PATCH app/fonttosfnt 4/5] Fix shadowing i variable complaint
Peter Hutterer
peter.hutterer at who-t.net
Tue Jul 31 01:53:17 UTC 2018
C99 is a magical thing!
Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
read.c | 6 +++---
1 file 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) {
--
2.17.1
More information about the xorg-devel
mailing list