Minor random fixes.
authorAndre <maan@p133.(none)>
Sun, 28 May 2006 22:05:16 +0000 (00:05 +0200)
committerAndre <maan@p133.(none)>
Sun, 28 May 2006 22:05:16 +0000 (00:05 +0200)
gcc is happy now.

aac_afh.c
audiod.c
filter.c
server.c
write.c

index fdb37a7..e6f99b4 100644 (file)
--- a/aac_afh.c
+++ b/aac_afh.c
@@ -192,12 +192,11 @@ static int aac_get_file_info(FILE *file, char *info_str, long unsigned *frames,
 }
 
 /*
- * Simple stream reposition routine
+ * nothing to do as we'll seek to the correct offset in aac read_chunk() anyway
  */
-static int aac_reposition_stream(long unsigned request)
+static int aac_reposition_stream(__a_unused long unsigned request)
 {
        return 1;
-//     return -E_AAC_REPOS;
 }
 
 static char *aac_read_chunk(long unsigned current_chunk, ssize_t *len)
index 99d8ab1..d788413 100644 (file)
--- a/audiod.c
+++ b/audiod.c
@@ -1566,7 +1566,7 @@ static void status_post_select(struct sched *s, struct task *t)
        if (ret <= 0) {
                close_stat_pipe();
                /* avoid busy loop if server is down */
-               while (sleep(1) > 0)
+               while (sleep(1) > 0) /* FIXME */
                        ; /* try again*/
        } else {
                st->buf[ret + st->loaded] = '\0';
index ee7e6db..56afebf 100644 (file)
--- a/filter.c
+++ b/filter.c
@@ -30,8 +30,6 @@
 
 INIT_FILTER_ERRLISTS;
 
-#define INBUF_SIZE 32 * 1024
-
 static struct stdin_task stdin_task_struct;
 static struct stdin_task *sit = &stdin_task_struct;
 static struct filter_chain filter_chain_struct;
index 1805c92..2391e07 100644 (file)
--- a/server.c
+++ b/server.c
@@ -33,7 +33,6 @@
 #include "db.h"
 #include "server.h"
 #include "afs.h"
-#include "afh.h" /* FIXME */
 #include "config.h"
 #include "close_on_fork.h"
 #include "send.h"
diff --git a/write.c b/write.c
index 2efe07c..e420620 100644 (file)
--- a/write.c
+++ b/write.c
@@ -57,7 +57,7 @@ static struct writer_node_group *wng;
  * \return If not, return -E_NO_WAV_HEADER, otherwise, return zero. If
  * there is less than WAV_HEADER_LEN bytes awailable, return one.
  */
-static void check_wav_pre_select(struct sched *s, struct task *t)
+static void check_wav_pre_select(__a_unused struct sched *s, struct task *t)
 {
        struct check_wav_task *cwt = t->private_data;
        unsigned char *a;