write.c: fix more compiler warnings on MacOs
authorAndre <maan@p133.(none)>
Thu, 20 Apr 2006 18:02:00 +0000 (20:02 +0200)
committerAndre <maan@p133.(none)>
Thu, 20 Apr 2006 18:02:00 +0000 (20:02 +0200)
format '%d' expects type 'int', but argument 4 has type 'size_t'
pointer targets in passing argument 1 of 'read_stdin' differ in signedness

write.c

diff --git a/write.c b/write.c
index 79aaef3..538651d 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);