* src/bzip2/ftbzip2.c: Signature fixes.

This commit is contained in:
Werner Lemberg 2023-05-08 06:26:43 +02:00
parent d52166ae9d
commit 968fc281ac
1 changed files with 12 additions and 7 deletions

View File

@ -62,10 +62,12 @@
static void* static void*
ft_bzip2_alloc( FT_Memory memory, ft_bzip2_alloc( void* memory_, /* FT_Memory */
int items, int items,
int size ) int size )
{ {
FT_Memory memory = (FT_Memory)memory_;
FT_ULong sz = (FT_ULong)size * (FT_ULong)items; FT_ULong sz = (FT_ULong)size * (FT_ULong)items;
FT_Error error; FT_Error error;
FT_Pointer p = NULL; FT_Pointer p = NULL;
@ -77,9 +79,12 @@
static void static void
ft_bzip2_free( FT_Memory memory, ft_bzip2_free( void* memory_, /* FT_Memory */
void* address ) void* address )
{ {
FT_Memory memory = (FT_Memory)memory_;
FT_MEM_FREE( address ); FT_MEM_FREE( address );
} }
@ -170,8 +175,8 @@
} }
/* initialize bzlib */ /* initialize bzlib */
bzstream->bzalloc = (alloc_func)ft_bzip2_alloc; bzstream->bzalloc = ft_bzip2_alloc;
bzstream->bzfree = (free_func) ft_bzip2_free; bzstream->bzfree = ft_bzip2_free;
bzstream->opaque = zip->memory; bzstream->opaque = zip->memory;
bzstream->avail_in = 0; bzstream->avail_in = 0;