summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--apps/playlist.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/apps/playlist.c b/apps/playlist.c
index f0fa40b..9ac05b5 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -26,6 +26,7 @@
#include <file.h>
#include "sprintf.h"
#include "debug.h"
+#include "mpeg.h"
playlist_info_t playlist;
@@ -38,6 +39,8 @@ char* playlist_next(int type)
int seek = playlist.indices[playlist.index];
int max;
int fd;
+ (void)type; /* prevent compiler warning until this is gets used */
+
playlist.index = (playlist.index+1) % playlist.amount;
fd = open(playlist.filename, O_RDONLY);
@@ -129,12 +132,12 @@ void add_indices_to_playlist( playlist_info_t *playlist )
}
static unsigned int playlist_seed = 0xdeadcafe;
-void seedit(unsigned int seed)
+static void seedit(unsigned int seed)
{
playlist_seed = seed;
}
-int getrand(void)
+static int getrand(void)
{
playlist_seed += 0x12345;
@@ -142,9 +145,6 @@ int getrand(void)
return playlist_seed;
}
-
-
-
/*
* randomly rearrange the array of indices for the playlist
*/