From 5bb5e2667df7459c288c3484d3539376a74a7c68 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 5 Apr 2014 23:34:51 +0100 Subject: Change the scope of some variables picked up by cppcheck, minor reformatting --- amiga/font_scan.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'amiga/font_scan.c') diff --git a/amiga/font_scan.c b/amiga/font_scan.c index f3ad36e6f..a2738f208 100644 --- a/amiga/font_scan.c +++ b/amiga/font_scan.c @@ -294,7 +294,7 @@ ULONG ami_font_scan_fonts(struct MinList *list, */ ULONG ami_font_scan_list(struct MinList *list) { - int afShortage, afSize = 100, i; + int afShortage, afSize = 100; struct AvailFontsHeader *afh; struct AvailFonts *af; ULONG found = 0; @@ -315,7 +315,7 @@ ULONG ami_font_scan_list(struct MinList *list) if(afh) { af = (struct AvailFonts *)&(afh[1]); - for(i = 0; i < afh->afh_NumEntries; i++) { + for(int i = 0; i < afh->afh_NumEntries; i++) { if(af[i].af_Attr.ta_Style == FS_NORMAL) { if(af[i].af_Attr.ta_Name != NULL) { node = (struct nsObject *)FindIName((struct List *)list, -- cgit v1.2.3