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/presets.c | 1 - apps/radio/radio.c | 1 - apps/radio/radio_skin.c | 1 - apps/radio/radioart.c | 4 ++-- 4 files changed, 2 insertions(+), 5 deletions(-) (limited to 'apps/radio') diff --git a/apps/radio/presets.c b/apps/radio/presets.c index 26a607ad4b..46ce0b1b5c 100644 --- a/apps/radio/presets.c +++ b/apps/radio/presets.c @@ -539,7 +539,6 @@ int handle_radio_presets(void) int presets_scan(void *viewports) { bool do_scan = true; - int i; struct viewport *vp = (struct viewport *)viewports; FOR_NB_SCREENS(i) diff --git a/apps/radio/radio.c b/apps/radio/radio.c index 4524707289..126ea93390 100644 --- a/apps/radio/radio.c +++ b/apps/radio/radio.c @@ -355,7 +355,6 @@ void radio_screen(void) { bool done = false; int button; - int i; bool stereo = false, last_stereo = false; int update_type = 0; bool screen_freeze = false; diff --git a/apps/radio/radio_skin.c b/apps/radio/radio_skin.c index b4b1933c5d..055de90429 100644 --- a/apps/radio/radio_skin.c +++ b/apps/radio/radio_skin.c @@ -63,7 +63,6 @@ char* default_radio_skin(enum screen_type screen) void fms_fix_displays(enum fms_exiting toggle_state) { - int i; FOR_NB_SCREENS(i) { struct wps_data *data = skin_get_gwps(FM_SCREEN, i)->data; 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