From 4ea404082d942bd8cef5f9d5a2eb9f68a4ad36b8 Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Fri, 7 Jun 2002 14:48:06 +0000 Subject: removed two compiler warnings, made the rand functions static git-svn-id: svn://svn.rockbox.org/rockbox/trunk@918 a1c6a512-1295-4272-9138-f99709370657 --- apps/playlist.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'apps/playlist.c') 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 @@ #include #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 */ -- cgit v1.2.3