Turn zlib_inflate_init2 into static function

This commit is contained in:
twinaphex 2016-01-24 06:52:14 +01:00
parent 280e10195c
commit 5c615f18e1
2 changed files with 6 additions and 8 deletions

View File

@ -76,12 +76,7 @@ static uint32_t read_le(const uint8_t *data, unsigned size)
return val;
}
void *zlib_stream_new(void)
{
return (z_stream*)calloc(1, sizeof(z_stream));
}
bool zlib_inflate_init2(void *data)
static bool zlib_inflate_init2(void *data)
{
z_stream *stream = (z_stream*)data;
@ -92,6 +87,11 @@ bool zlib_inflate_init2(void *data)
return true;
}
void *zlib_stream_new(void)
{
return (z_stream*)calloc(1, sizeof(z_stream));
}
void zlib_deflate_init(void *data, int level)
{
z_stream *stream = (z_stream*)data;

View File

@ -166,8 +166,6 @@ void zlib_stream_deflate_free(void *data);
bool zlib_inflate_init(void *data);
bool zlib_inflate_init2(void *data);
void zlib_set_stream(void *data,
uint32_t avail_in,
uint32_t avail_out,