summaryrefslogtreecommitdiff
path: root/amiga/font_scan.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2014-04-05 23:34:51 +0100
committerChris Young <chris@unsatisfactorysoftware.co.uk>2014-04-05 23:34:51 +0100
commit5bb5e2667df7459c288c3484d3539376a74a7c68 (patch)
tree45f10d2608677c890ebcb6b78804de1d423513c9 /amiga/font_scan.c
parent3ea6ca89a0daf4a20ddf9962cc787ed5001f5ab6 (diff)
downloadnetsurf-5bb5e2667df7459c288c3484d3539376a74a7c68.tar.gz
netsurf-5bb5e2667df7459c288c3484d3539376a74a7c68.tar.bz2
Change the scope of some variables picked up by cppcheck, minor reformatting
Diffstat (limited to 'amiga/font_scan.c')
-rw-r--r--amiga/font_scan.c4
1 files changed, 2 insertions, 2 deletions
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,