From 07c25fac868f7122ca38da3cf9bf6637ba18214a Mon Sep 17 00:00:00 2001 From: Andre Noll Date: Wed, 4 Apr 2007 10:33:00 +0200 Subject: [PATCH] fix some compiler warnings on Mac OS add two casts to make gcc stfu. --- fd.c | 2 +- mp3_afh.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fd.c b/fd.c index db1825cd..ec174ff6 100644 --- a/fd.c +++ b/fd.c @@ -165,7 +165,7 @@ void *para_mmap(size_t length, int prot, int flags, int fd, off_t offset) return ret; PARA_EMERG_LOG("mmap failed: %s\n", strerror(errno)); PARA_EMERG_LOG("length: %zu, flags: %d, fd: %d, offset: %zu\n", - length, flags, fd, offset); + length, flags, fd, (size_t)offset); exit(EXIT_FAILURE); } diff --git a/mp3_afh.c b/mp3_afh.c index 9ef5dffb..4764d3ce 100644 --- a/mp3_afh.c +++ b/mp3_afh.c @@ -280,7 +280,7 @@ static void mp3_get_id3(unsigned char *map, off_t numbytes, off_t *fpos) if (numbytes < 128) return; *fpos = numbytes - 128; - if (strncmp("TAG", map + *fpos, 3)) { + if (strncmp("TAG", (char *) map + *fpos, 3)) { PARA_INFO_LOG("%s", "no id3 tag\n"); return; } -- 2.39.2