From: Andre Noll Date: Wed, 4 Apr 2007 08:33:00 +0000 (+0200) Subject: fix some compiler warnings on Mac OS X-Git-Tag: v0.2.16~1 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=07c25fac868f7122ca38da3cf9bf6637ba18214a fix some compiler warnings on Mac OS add two casts to make gcc stfu. --- 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; }