diff options
| author | Björn Stenberg <bjorn@haxx.se> | 2011-10-15 19:35:02 +0000 |
|---|---|---|
| committer | Björn Stenberg <bjorn@haxx.se> | 2011-10-15 19:35:02 +0000 |
| commit | 0942e2a0f71d809c1d7f2606cbddfa1d4beacb87 (patch) | |
| tree | ce2fbdea468cb8223598c546fee765a10660a0b0 /apps/plugins/lrcplayer.c | |
| parent | f301ac05f9dd6ace2355fa822bd61d454c2c4f28 (diff) | |
| download | rockbox-0942e2a0f71d809c1d7f2606cbddfa1d4beacb87.zip rockbox-0942e2a0f71d809c1d7f2606cbddfa1d4beacb87.tar.gz rockbox-0942e2a0f71d809c1d7f2606cbddfa1d4beacb87.tar.bz2 rockbox-0942e2a0f71d809c1d7f2606cbddfa1d4beacb87.tar.xz | |
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
Diffstat (limited to 'apps/plugins/lrcplayer.c')
| -rw-r--r-- | apps/plugins/lrcplayer.c | 7 |
1 files changed, 3 insertions, 4 deletions
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; |