Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
filebundle: try to fix build error for older zlib..
  • Loading branch information
perexg committed Jan 24, 2015
1 parent d83aefe commit 078dff5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/filebundle.c
Expand Up @@ -88,7 +88,7 @@ static uint8_t *_fb_inflate ( const uint8_t *data, size_t size, size_t orig )
memset(&zstr, 0, sizeof(zstr));
inflateInit2(&zstr, 31);
zstr.avail_in = size;
zstr.next_in = data;
zstr.next_in = (z_const uint8_t *)data;
zstr.avail_out = orig;
zstr.next_out = bufout;

Expand Down Expand Up @@ -118,7 +118,7 @@ static uint8_t *_fb_deflate ( const uint8_t *data, size_t orig, size_t *size )
memset(&zstr, 0, sizeof(zstr));
err = deflateInit2(&zstr, 9, Z_DEFLATED, 31, 9, Z_DEFAULT_STRATEGY);
zstr.avail_in = orig;
zstr.next_in = data;
zstr.next_in = (z_const uint8_t *)data;
zstr.avail_out = orig;
zstr.next_out = bufout;

Expand Down

0 comments on commit 078dff5

Please sign in to comment.