From 0942e2a0f71d809c1d7f2606cbddfa1d4beacb87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= 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/plugins/lrcplayer.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'apps/plugins/lrcplayer.c') diff --git a/apps/plugins/lrcplayer.c b/apps/plugins/lrcplayer.c index f0b3e47..ca275de 100644 --- a/apps/plugins/lrcplayer.c +++ b/apps/plugins/lrcplayer.c @@ -1600,7 +1600,7 @@ static void display_state(void) info = "(no info)"; } - int i, w, h; + int w, h; struct screen* display; FOR_NB_SCREENS(i) { @@ -1640,7 +1640,7 @@ static void display_time(void) current.elapsed/60000, (current.elapsed/1000)%60, current.length/60000, (current.length)/1000%60); #ifdef HAVE_LCD_BITMAP - int y = (prefs.display_title? font_ui_height:0), i; + int y = (prefs.display_title? font_ui_height:0); FOR_NB_SCREENS(i) { struct screen* display = rb->screens[i]; @@ -1842,7 +1842,7 @@ static int display_lrc_line(struct lrc_line *lrc_line, int ypos, int i) static void display_lrcs(void) { long time_start, time_end, rin, len; - int i, nline[NB_SCREENS] = {0}; + int nline[NB_SCREENS] = {0}; struct lrc_line *lrc_center = current.ll_head; if (!lrc_center) return; @@ -2773,7 +2773,6 @@ static int handle_button(void) static int lrc_main(void) { int ret = LRC_GOTO_MAIN; - int i; long id3_timeout = 0; bool update_display_state = true; -- cgit v1.1