Cleanups
This commit is contained in:
parent
d1d127728d
commit
c5597d3c9d
|
@ -139,7 +139,7 @@ static bool zlib_stream_decompress_data_to_file_init(
|
||||||
if (!(handle->stream = (z_stream*)zlib_stream_new()))
|
if (!(handle->stream = (z_stream*)zlib_stream_new()))
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
if (inflateInit2(handle->stream, -MAX_WBITS) != Z_OK)
|
if (inflateInit2((z_streamp)handle->stream, -MAX_WBITS) != Z_OK)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
handle->data = (uint8_t*)malloc(size);
|
handle->data = (uint8_t*)malloc(size);
|
||||||
|
|
|
@ -148,7 +148,7 @@ void file_archive_deflate_init(void *data, int level);
|
||||||
|
|
||||||
const struct file_archive_file_backend *file_archive_get_default_file_backend(void);
|
const struct file_archive_file_backend *file_archive_get_default_file_backend(void);
|
||||||
|
|
||||||
const struct file_archive_file_backend zlib_backend;
|
extern const struct file_archive_file_backend zlib_backend;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue