diff options
author | Werner Lemberg <wl@gnu.org> | 2023-05-08 06:26:43 +0200 |
---|---|---|
committer | Werner Lemberg <wl@gnu.org> | 2023-05-08 06:26:43 +0200 |
commit | 968fc281acc3dc2d7ad82f9d439b8e248aa0ffba (patch) | |
tree | 0ee96bee400b63f3547fde0b1286843b117c7b23 | |
parent | d52166ae9d933f74249be2ae746ba9ca07de9c09 (diff) | |
download | freetype2-968fc281acc3dc2d7ad82f9d439b8e248aa0ffba.tar.gz |
* src/bzip2/ftbzip2.c: Signature fixes.
-rw-r--r-- | src/bzip2/ftbzip2.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/src/bzip2/ftbzip2.c b/src/bzip2/ftbzip2.c index 6cf10678b..ad342bd01 100644 --- a/src/bzip2/ftbzip2.c +++ b/src/bzip2/ftbzip2.c @@ -62,10 +62,12 @@ static void* - ft_bzip2_alloc( FT_Memory memory, - int items, - int size ) + ft_bzip2_alloc( void* memory_, /* FT_Memory */ + int items, + int size ) { + FT_Memory memory = (FT_Memory)memory_; + FT_ULong sz = (FT_ULong)size * (FT_ULong)items; FT_Error error; FT_Pointer p = NULL; @@ -77,9 +79,12 @@ static void - ft_bzip2_free( FT_Memory memory, - void* address ) + ft_bzip2_free( void* memory_, /* FT_Memory */ + void* address ) { + FT_Memory memory = (FT_Memory)memory_; + + FT_MEM_FREE( address ); } @@ -170,8 +175,8 @@ } /* initialize bzlib */ - bzstream->bzalloc = (alloc_func)ft_bzip2_alloc; - bzstream->bzfree = (free_func) ft_bzip2_free; + bzstream->bzalloc = ft_bzip2_alloc; + bzstream->bzfree = ft_bzip2_free; bzstream->opaque = zip->memory; bzstream->avail_in = 0; |