new codename, reset version to git
[paraslash.git] / write.c
diff --git a/write.c b/write.c
index 79aaef3112931579fca863dd4484e1dc460817f1..6e4ee0639654eac69ae76cb94e5a0bcffb316688 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);
@@ -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];