X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=blobdiff_plain;f=random_selector.c;h=ec1f5c6c53c39982cdf2ed488447598bcbfb59cd;hp=bdb82682baeee1cec89e32e2c394b724d8eba68b;hb=db34194eaab9819772bd55ea1ab08c719ed8f1c8;hpb=1f556ae88bd8c85d4452f689f532f5a6abeabe92 diff --git a/random_selector.c b/random_selector.c index bdb82682..ec1f5c6c 100644 --- a/random_selector.c +++ b/random_selector.c @@ -33,7 +33,7 @@ extern struct misc_meta_data *mmd; static unsigned int num_audio_files, audio_file_count; static char **audio_file_list; -static int count_audio_files(__unused const char *dir, __unused const char *name) +static int count_audio_files(__a_unused const char *dir, __a_unused const char *name) { num_audio_files++; return 1; @@ -64,7 +64,7 @@ static struct server_command cmds[] = { } }; -static int com_random_info(int fd, __unused int argc, __unused char *argv[]) +static int com_random_info(int fd, __a_unused int argc, __a_unused char *argv[]) { return send_buffer(fd, "Don't use for huge directories as it is " "very inefficient in this case.\n"); @@ -98,7 +98,7 @@ static char **random_get_audio_file_list(unsigned int num) goto out; /* careful, files might got deleted underneath */ num_audio_files = audio_file_count; /* can only decrease */ - len = MIN(num, num_audio_files); + len = PARA_MIN(num, num_audio_files); ret = -E_NOTHING_FOUND; if (!len) /* nothing found, return NULL */ goto out;