aboutsummaryrefslogtreecommitdiff
path: root/loader.c
diff options
context:
space:
mode:
authorStefan Weil <weil@mail.berlios.de>2009-06-09 23:36:03 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-06-13 19:19:25 -0500
commitd084eab6f820bf914d798a99eaa4f20113f6e151 (patch)
tree501c1f8cb505b66279a25bafa4a6c2933208fe75 /loader.c
parent11be4b3e01a9c06b2f6b65af6597a5a318fdc204 (diff)
Fix prototype of function zfree.
Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'loader.c')
-rw-r--r--loader.c4
1 files changed, 2 insertions, 2 deletions
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) {