Some more aacdec cleanups
[paraslash.git] / write.c
diff --git a/write.c b/write.c
index 3fb0ef0..6e4ee06 100644 (file)
--- a/write.c
+++ b/write.c
@@ -29,7 +29,7 @@
 
 #define WAV_HEADER_LEN 44
 
-static unsigned char *audiobuf;
+static char *audiobuf;
 static struct timeval *start_time;
 struct gengetopt_args_info conf;
 
@@ -134,7 +134,7 @@ static int pcm_write(struct writer_node_group *wng, size_t loaded)
        ret = wng_open(wng);
        if (ret < 0)
                goto out;
-       PARA_INFO_LOG("max chunk_bytes: %d\n", wng->max_chunk_bytes);
+       PARA_INFO_LOG("max chunk_bytes: %zd\n", wng->max_chunk_bytes);
        bufsize = (conf.bufsize_arg * 1024 / wng->max_chunk_bytes)
                * wng->max_chunk_bytes;
        audiobuf = para_realloc(audiobuf, bufsize);
@@ -168,7 +168,7 @@ out:
        return ret;
 }
 
-struct writer_node_group *check_args(void)
+static struct writer_node_group *check_args(void)
 {
        int i, ret = -E_WRITE_SYNTAX;
        static struct timeval tv;
@@ -227,7 +227,7 @@ out:
  */
 static size_t check_wave(void)
 {
-       unsigned char *a = audiobuf;
+       unsigned char *a = (unsigned char*)audiobuf;
        if (a[0] != 'R' || a[1] != 'I' || a[2] != 'F' || a[3] != 'F')
                return WAV_HEADER_LEN;
        conf.channels_arg = (unsigned) a[22];