From 0942e2a0f71d809c1d7f2606cbddfa1d4beacb87 Mon Sep 17 00:00:00 2001 From: Björn Stenberg Date: Sat, 15 Oct 2011 19:35:02 +0000 Subject: Changed the FOR_NB_SCREENS macro to always be a for loop that declares its own loop variable. This removes the need to declare this variable in the outer scope. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@30756 a1c6a512-1295-4272-9138-f99709370657 --- apps/radio/radioart.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/radio/radioart.c') diff --git a/apps/radio/radioart.c b/apps/radio/radioart.c index 4268272cdf..07fab814dd 100644 --- a/apps/radio/radioart.c +++ b/apps/radio/radioart.c @@ -99,7 +99,7 @@ static int load_radioart_image(struct radioart *ra, const char* preset_name, int radio_get_art_hid(struct dim *requested_dim) { int preset = radio_current_preset(); - int i, free_idx = -1; + int free_idx = -1; const char* preset_name; if (radio_scan_mode() || preset < 0) return -1; @@ -108,7 +108,7 @@ int radio_get_art_hid(struct dim *requested_dim) return -1; #endif preset_name = radio_get_preset_name(preset); - for(i=0;i