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 f0fa40bb98..9ac05b5fe2 100644
--- a/apps/playlist.c
+++ b/apps/playlist.c
@@ -26,6 +26,7 @@
26#include <file.h> 26#include <file.h>
27#include "sprintf.h" 27#include "sprintf.h"
28#include "debug.h" 28#include "debug.h"
29#include "mpeg.h"
29 30
30playlist_info_t playlist; 31playlist_info_t playlist;
31 32
@@ -38,6 +39,8 @@ char* playlist_next(int type)
38 int seek = playlist.indices[playlist.index]; 39 int seek = playlist.indices[playlist.index];
39 int max; 40 int max;
40 int fd; 41 int fd;
42 (void)type; /* prevent compiler warning until this is gets used */
43
41 playlist.index = (playlist.index+1) % playlist.amount; 44 playlist.index = (playlist.index+1) % playlist.amount;
42 45
43 fd = open(playlist.filename, O_RDONLY); 46 fd = open(playlist.filename, O_RDONLY);
@@ -129,12 +132,12 @@ void add_indices_to_playlist( playlist_info_t *playlist )
129} 132}
130 133
131static unsigned int playlist_seed = 0xdeadcafe; 134static unsigned int playlist_seed = 0xdeadcafe;
132void seedit(unsigned int seed) 135static void seedit(unsigned int seed)
133{ 136{
134 playlist_seed = seed; 137 playlist_seed = seed;
135} 138}
136 139
137int getrand(void) 140static int getrand(void)
138{ 141{
139 playlist_seed += 0x12345; 142 playlist_seed += 0x12345;
140 143
@@ -142,9 +145,6 @@ int getrand(void)
142 return playlist_seed; 145 return playlist_seed;
143} 146}
144 147
145
146
147
148/* 148/*
149 * randomly rearrange the array of indices for the playlist 149 * randomly rearrange the array of indices for the playlist
150 */ 150 */