diff options
| author | Robert Hak <adiamas@rockbox.org> | 2002-08-23 11:31:19 +0000 |
|---|---|---|
| committer | Robert Hak <adiamas@rockbox.org> | 2002-08-23 11:31:19 +0000 |
| commit | f27fecb0768caea46ad72f435f5e5c4e808f3fbf (patch) | |
| tree | 2727c1b75c58286812d6bdcf371f39a499142830 /apps | |
| parent | d58dab8dd8bbf31164f81bf69b31d547e4080f92 (diff) | |
| download | rockbox-f27fecb0768caea46ad72f435f5e5c4e808f3fbf.zip rockbox-f27fecb0768caea46ad72f435f5e5c4e808f3fbf.tar.gz rockbox-f27fecb0768caea46ad72f435f5e5c4e808f3fbf.tar.bz2 rockbox-f27fecb0768caea46ad72f435f5e5c4e808f3fbf.tar.xz | |
minor style fixes
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1946 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps')
| -rw-r--r-- | apps/wps.c | 13 |
1 files changed, 8 insertions, 5 deletions
@@ -107,13 +107,13 @@ static void draw_screen(struct mp3entry* id3) szTok = strtok_r(szBuff, "/", &end); szTok = strtok_r(NULL, "/", &end); - // Assume path format of: Genre/Artist/Album/Mp3_file + /* Assume path format of: Genre/Artist/Album/Mp3_file */ strncpy(szArtist,szTok,sizeof(szArtist)); szArtist[sizeof(szArtist)-1] = 0; szDelimit = strrchr(id3->path, ch); lcd_puts(0, 0, szArtist?szArtist:"<nothing>"); - // removes the .mp3 from the end of the display buffer + /* removes the .mp3 from the end of the display buffer */ szPeriod = strrchr(szDelimit, '.'); if (szPeriod != NULL) *szPeriod = 0; @@ -160,7 +160,8 @@ static void draw_screen(struct mp3entry* id3) snprintf(buffer, sizeof(buffer), "%d kbit (avg)", id3->bitrate); else - snprintf(buffer, sizeof(buffer), "%d kbit", id3->bitrate); + snprintf(buffer, sizeof(buffer), "%d kbit", + id3->bitrate); lcd_puts(0, l++, buffer); snprintf(buffer,sizeof(buffer), "%d Hz", id3->frequency); @@ -234,6 +235,7 @@ int wps_load_custom_config(void) buffer[0]=0; lcd_stop_scroll(); + fd = open("/wps.config", O_RDONLY); if(-1 == fd) { @@ -509,7 +511,7 @@ void display_volume_level(int vol_level) char buffer[32]; lcd_stop_scroll(); - snprintf(buffer,sizeof(buffer),"Vol: %d %s ", vol_level * 2, "%"); + snprintf(buffer,sizeof(buffer),"Vol: %d %% ", vol_level * 2); #ifdef HAVE_LCD_CHARCELLS lcd_puts(0, 0, buffer); @@ -1113,7 +1115,8 @@ int wps_show(void) if ( id3 && global_settings.resume && global_settings.resume_offset != id3->offset ) { - DEBUGF("R%X,%X (%X)\n",global_settings.resume_offset,id3->offset,id3); + DEBUGF("R%X,%X (%X)\n", global_settings.resume_offset, + id3->offset,id3); global_settings.resume_index = id3->index; global_settings.resume_offset = id3->offset; settings_save(); |