Commit d084eab6f820bf914d798a99eaa4f20113f6e151
Committed by
Anthony Liguori
1 parent
11be4b3e
Fix prototype of function zfree.
Signed-off-by: Stefan Weil <weil@mail.berlios.de> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Showing
1 changed file
with
2 additions
and
2 deletions
loader.c
... | ... | @@ -382,7 +382,7 @@ static void *zalloc(void *x, unsigned items, unsigned size) |
382 | 382 | return (p); |
383 | 383 | } |
384 | 384 | |
385 | -static void zfree(void *x, void *addr, unsigned nb) | |
385 | +static void zfree(void *x, void *addr) | |
386 | 386 | { |
387 | 387 | qemu_free(addr); |
388 | 388 | } |
... | ... | @@ -430,7 +430,7 @@ static ssize_t gunzip(void *dst, size_t dstlen, uint8_t *src, |
430 | 430 | } |
431 | 431 | |
432 | 432 | s.zalloc = zalloc; |
433 | - s.zfree = (free_func)zfree; | |
433 | + s.zfree = zfree; | |
434 | 434 | |
435 | 435 | r = inflateInit2(&s, -MAX_WBITS); |
436 | 436 | if (r != Z_OK) { | ... | ... |