Fix prototype of function zfree.
authorStefan Weil <weil@mail.berlios.de>
Tue, 9 Jun 2009 21:36:03 +0000 (23:36 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Sun, 14 Jun 2009 00:19:25 +0000 (19:19 -0500)
Signed-off-by: Stefan Weil <weil@mail.berlios.de>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
loader.c

index 5232ee1..9350c54 100644 (file)
--- 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) {