From: Andre Noll Date: Mon, 7 Dec 2009 17:43:26 +0000 (+0100) Subject: Fix two gcc warnings on MAC OS. X-Git-Tag: v0.4.1~8 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=c553c9e0439eac2e0e03c9e948698e192ef63234;ds=sidebyside Fix two gcc warnings on MAC OS. This fixes: wma_common.c:41: warning: format '%zd' expects type 'signed size_t', but argument 5 has type 'int' wma_common.c:59: warning: format '%0zx' expects type 'size_t', but argument 4 has type 'int' --- diff --git a/wma_common.c b/wma_common.c index dab96257..10633b5b 100644 --- a/wma_common.c +++ b/wma_common.c @@ -38,7 +38,7 @@ const char *search_pattern(const char *pattern, int pattern_len, for (p = buf; p + pattern_len < end; p++) { if (memcmp(p, pattern, pattern_len)) continue; - PARA_DEBUG_LOG("found %d byte pattern@%zd\n", + PARA_DEBUG_LOG("found %d byte pattern@%d\n", pattern_len, p - buf); return p; } @@ -56,7 +56,7 @@ static int find_audio_stream_info(const char *buf, int len) if (!p) return -E_WMA_NO_GUID; - PARA_DEBUG_LOG("found audio stream guid@%0zx\n", p - buf); + PARA_DEBUG_LOG("found audio stream guid@%0x\n", p - buf); return p - buf + 16; }