From: Andre Date: Thu, 20 Apr 2006 18:02:00 +0000 (+0200) Subject: write.c: fix more compiler warnings on MacOs X-Git-Tag: v0.2.12~37 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=30d5fba186f71ab3d116f41ce894b73b4bf323e0;ds=sidebyside 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 --- 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);