From: Stefan Weil Date: Tue, 9 Jun 2009 21:36:03 +0000 (+0200) Subject: Fix prototype of function zfree. X-Git-Tag: v0.10.6~25 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=d13317e197da0e85ba9b57332182c6363aee085d;hp=75204ffc5b401a0df1cd611f8c98224c4fd21960;p=qemu.git Fix prototype of function zfree. (cherry picked from commit d084eab6f820bf914d798a99eaa4f20113f6e151) Signed-off-by: Stefan Weil Signed-off-by: Anthony Liguori --- diff --git a/loader.c b/loader.c index 55625cf5b..23bb03982 100644 --- a/loader.c +++ b/loader.c @@ -383,7 +383,7 @@ static void *zalloc(void *x, unsigned items, unsigned size) return (p); } -static void zfree(void *x, void *addr, unsigned nb) +static void zfree(void *x, void *addr) { qemu_free(addr); } @@ -431,7 +431,7 @@ static ssize_t gunzip(void *dst, size_t dstlen, uint8_t *src, } s.zalloc = zalloc; - s.zfree = (free_func)zfree; + s.zfree = zfree; r = inflateInit2(&s, -MAX_WBITS); if (r != Z_OK) {