diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2002-06-07 14:48:06 +0000 |
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2002-06-07 14:48:06 +0000 |
| commit | 4ea404082d942bd8cef5f9d5a2eb9f68a4ad36b8 (patch) | |
| tree | f8a33f06e9762e440e59dd271a408d94d988e534 | |
| parent | c633ceb93e8f24e037cc1228dbb58d1feee775f1 (diff) | |
| download | rockbox-4ea404082d942bd8cef5f9d5a2eb9f68a4ad36b8.zip rockbox-4ea404082d942bd8cef5f9d5a2eb9f68a4ad36b8.tar.gz rockbox-4ea404082d942bd8cef5f9d5a2eb9f68a4ad36b8.tar.bz2 rockbox-4ea404082d942bd8cef5f9d5a2eb9f68a4ad36b8.tar.xz | |
removed two compiler warnings, made the rand functions static
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@918 a1c6a512-1295-4272-9138-f99709370657
| -rw-r--r-- | apps/playlist.c | 10 |
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 */ |