From 30d5fba186f71ab3d116f41ce894b73b4bf323e0 Mon Sep 17 00:00:00 2001 From: Andre Date: Thu, 20 Apr 2006 20:02:00 +0200 Subject: [PATCH] write.c: fix more compiler warnings on MacOs 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/write.c b/write.c index 79aaef31..538651d6 100644 --- 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); -- 2.39.5