提交 d084eab6 编写于 作者: S Stefan Weil 提交者: Anthony Liguori

Fix prototype of function zfree.

Signed-off-by: NStefan Weil <weil@mail.berlios.de>
Signed-off-by: NAnthony Liguori <aliguori@us.ibm.com>
上级 11be4b3e
......@@ -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) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册