summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>2005-02-12 12:40:35 +0000
committerJean-Philippe Bernardy <jeanphilippe.bernardy@gmail.com>2005-02-12 12:40:35 +0000
commit6e2a8a004d4e2bc643fa19170550134d0429eb5c (patch)
tree0daaf91b774011770ca46dcf30bbfa1a23cbef7d
parent8758713f84bb731e03b080cb984275608369c9ca (diff)
downloadrockbox-6e2a8a004d4e2bc643fa19170550134d0429eb5c.tar.gz
rockbox-6e2a8a004d4e2bc643fa19170550134d0429eb5c.zip
long policy
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@5932 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 a261f21a5d..9c8619fa66 100644
--- a/apps/wps-display.c
+++ b/apps/wps-display.c
@@ -237,14 +237,15 @@ bool wps_load(const char* file, bool display)
237 * buf_size - size of buffer. 237 * buf_size - size of buffer.
238 * time - time to format, in milliseconds. 238 * time - time to format, in milliseconds.
239 */ 239 */
240static void format_time(char* buf, int buf_size, int time) 240static void format_time(char* buf, int buf_size, long time)
241{ 241{
242 if ( time < 3600000 ) { 242 if ( time < 3600000 ) {
243 snprintf(buf, buf_size, "%d:%02d", 243 snprintf(buf, buf_size, "%d:%02d",
244 time % 3600000 / 60000, time % 60000 / 1000); 244 (int) (time % 3600000 / 60000), (int) (time % 60000 / 1000));
245 } else { 245 } else {
246 snprintf(buf, buf_size, "%d:%02d:%02d", 246 snprintf(buf, buf_size, "%d:%02d:%02d",
247 time / 3600000, time % 3600000 / 60000, time % 60000 / 1000); 247 (int) (time / 3600000), (int) (time % 3600000 / 60000),
248 (int) (time % 60000 / 1000));
248 } 249 }
249} 250}
250 251