]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
Fix two gcc warnings.
authorAndre Noll <maan@systemlinux.org>
Mon, 4 May 2009 11:12:17 +0000 (13:12 +0200)
committerAndre Noll <maan@systemlinux.org>
Mon, 4 May 2009 11:12:17 +0000 (13:12 +0200)
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'

alsa_write.c
mp3_afh.c

index 0bb3de38d6a06dd81562a95e518453fd666e4991..df39716fbdd36e1a608c6c197cc3a8d3b36e8a49 100644 (file)
@@ -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;
index c62a523af473b6fe8cc215545d878ef7f5752547..2d18d5e5de7df641f6cbe7b7ad937cb3f2d69e3e 100644 (file)
--- 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;