]> git.tue.mpg.de Git - paraslash.git/commitdiff
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 fdb37a7e0f3d8c89ac1ee6992aad2cfeb920f763..e6f99b4f51958b4ddced2d67d997ea2f2926f2ad 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 99d8ab1afa865c73d97e1f705c2f85285a557e21..d78841336893c170f9da7472c717b1e70c9c45bc 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 ee7e6dbcd1270a89939d8c30ca46db08acb97c3c..56afebf3a6ecfed020cf2c6dad065168a80277e0 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 1805c92b62de84d7131bf71c905dc3d8d23a0d93..2391e07c360d93f68e85a76c99bc783e1f2d4bc0 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 2efe07ce730264be610fc35adc2bc1cdd9fc0721..e42062038dc6d1054c80e84c2d3dd998b359bce9 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;