summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2002-06-17 13:34:53 +0000
committerDaniel Stenberg <daniel@haxx.se>2002-06-17 13:34:53 +0000
commit3a36af9a226358d08e83563bf4687f39f7f25e27 (patch)
treedc539439bbb606b544cd2ce42864cc30506624f1
parenta898728c542e3609327c93a761c95e981a34161e (diff)
downloadrockbox-3a36af9a226358d08e83563bf4687f39f7f25e27.zip
rockbox-3a36af9a226358d08e83563bf4687f39f7f25e27.tar.gz
rockbox-3a36af9a226358d08e83563bf4687f39f7f25e27.tar.bz2
rockbox-3a36af9a226358d08e83563bf4687f39f7f25e27.tar.xz
no time.h, no time() not even in simulators
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@1040 a1c6a512-1295-4272-9138-f99709370657
-rw-r--r--apps/playlist.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index f1bcfaa..5d7ef2f 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -19,7 +19,7 @@
#include <stdio.h>
#include <malloc.h>
-#include <time.h>
+
#include <stdlib.h>
#include <string.h>
#include "playlist.h"
@@ -135,11 +135,7 @@ void add_indices_to_playlist( playlist_info_t *playlist )
int i = 0;
int store_index = 0;
int count = 0;
-#ifdef SIMULATOR
- int next_tick = time(NULL);
-#else
int next_tick = current_tick + HZ;
-#endif
unsigned char *p;
unsigned char buf[512];
@@ -181,13 +177,8 @@ void add_indices_to_playlist( playlist_info_t *playlist )
}
store_index = 0;
-#ifdef SIMULATOR
- if ( time(NULL) >= next_tick ) {
- next_tick = time(NULL) + 1;
-#else
if ( current_tick >= next_tick ) {
next_tick = current_tick + HZ;
-#endif
snprintf(line, sizeof line, "%d files", playlist->amount);
lcd_puts(0,1,line);
lcd_update();