From 15e21eb85b3b68411f5164f78d2e983954eff713 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Stenberg?= Date: Thu, 27 Jun 2002 17:24:11 +0000 Subject: [PATCH] Removed warning git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1238 a1c6a512-1295-4272-9138-f99709370657 --- apps/wps.c | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/apps/wps.c b/apps/wps.c index a4d7292c64..18d9ff320c 100644 --- a/apps/wps.c +++ b/apps/wps.c @@ -119,7 +119,6 @@ void wps_show(void) struct mp3entry* id3 = mpeg_current_track(); int lastlength=0, lastsize=0, lastrate=0; int lastartist=0, lastalbum=0, lasttitle=0; - char buffer[32]; while ( 1 ) { int i; @@ -141,13 +140,16 @@ void wps_show(void) } #ifdef HAVE_LCD_BITMAP - snprintf(buffer,sizeof(buffer), "Time: %d:%02d / %d:%02d", - id3->elapsed / 60000, - id3->elapsed % 60000 / 1000, - id3->length / 60000, - id3->length % 60000 / 1000 ); - lcd_puts(0, 6, buffer); - lcd_update(); + { + char buffer[32]; + snprintf(buffer,sizeof(buffer), "Time: %d:%02d / %d:%02d", + id3->elapsed / 60000, + id3->elapsed % 60000 / 1000, + id3->length / 60000, + id3->length % 60000 / 1000 ); + lcd_puts(0, 6, buffer); + lcd_update(); + } #endif for ( i=0;i<5;i++ ) {