From: Andre Noll Date: Mon, 4 May 2009 11:12:17 +0000 (+0200) Subject: Fix two gcc warnings. X-Git-Tag: v0.3.4~4 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=813bec7dd99c3f5f43f046af0b1c87d70010dd19;ds=sidebyside Fix two gcc warnings. mp3_afh.c:420: warning: comparison of distinct pointer types lacks a cast alsa_write.c:119: warning: format '%zu' expects type 'size_t', but argument 4 has type 'int' --- diff --git a/alsa_write.c b/alsa_write.c index 0bb3de38..df39716f 100644 --- a/alsa_write.c +++ b/alsa_write.c @@ -116,7 +116,7 @@ static int alsa_init(struct private_alsa_write_data *pad, * pad->channels / 8; if (pad->bytes_per_frame <= 0) return -E_PHYSICAL_WIDTH; - PARA_INFO_LOG("bytes per frame: %zu\n", pad->bytes_per_frame); + PARA_INFO_LOG("bytes per frame: %d\n", pad->bytes_per_frame); if (snd_pcm_nonblock(pad->handle, 1)) PARA_ERROR_LOG("failed to set nonblock mode\n"); return 1; diff --git a/mp3_afh.c b/mp3_afh.c index c62a523a..2d18d5e5 100644 --- a/mp3_afh.c +++ b/mp3_afh.c @@ -411,7 +411,7 @@ static int mp3_read_info(unsigned char *map, size_t numbytes, int fd, fpos += len; len = find_valid_start(map, numbytes, &fpos, &header); if (len <= 0) { - uint32_t end; + size_t end; ret = -E_MP3_INFO; if (!afhi->chunks_total) goto err_out;