summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMats Lidell <matsl@rockbox.org>2002-10-11 11:39:36 +0000
committerMats Lidell <matsl@rockbox.org>2002-10-11 11:39:36 +0000
commit1305c88d18a13772617533bd6ebd9f10d3797aa6 (patch)
tree6cc39ce3793b6d9b2c1e547daada86b5dd18c46b
parent2aab7cc4b520430b6709b42281ed17045fc09be9 (diff)
downloadrockbox-1305c88d18a13772617533bd6ebd9f10d3797aa6.tar.gz
rockbox-1305c88d18a13772617533bd6ebd9f10d3797aa6.zip
Made code more like C89.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@2582 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/wps-display.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/apps/wps-display.c b/apps/wps-display.c
index e46ff94a32..59fda08cac 100644
--- a/apps/wps-display.c
+++ b/apps/wps-display.c
@@ -666,13 +666,14 @@ bool wps_display(struct mp3entry* id3)
#if defined(HAVE_LCD_CHARCELLS)
bool draw_player_progress(struct mp3entry* id3, int ff_rewwind_count)
{
- if(!id3)
- return(false);
char player_progressbar[7];
char binline[36];
int songpos = 0;
int i,j;
+ if (!id3)
+ return false;
+
memset(binline, 1, sizeof binline);
memset(player_progressbar, 1, sizeof player_progressbar);
if(id3->elapsed >= id3->length)
@@ -694,6 +695,6 @@ bool draw_player_progress(struct mp3entry* id3, int ff_rewwind_count)
}
}
lcd_define_pattern(8,player_progressbar,7);
- return(true);
+ return true;
}
#endif