From d084eab6f820bf914d798a99eaa4f20113f6e151 Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Tue, 9 Jun 2009 23:36:03 +0200 Subject: Fix prototype of function zfree. Signed-off-by: Stefan Weil Signed-off-by: Anthony Liguori --- loader.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'loader.c') diff --git a/loader.c b/loader.c index 5232ee12a7..9350c541da 100644 --- a/loader.c +++ b/loader.c @@ -382,7 +382,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); } @@ -430,7 +430,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) { -- cgit v1.2.3