Skip to content

Commit

Permalink
extmod: Update uzlib to 1.2.1.
Browse files Browse the repository at this point in the history
Fixes for compiler warnings in pedantic mode.
  • Loading branch information
pfalcon committed Mar 18, 2015
1 parent d7194f1 commit 02894b5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion extmod/uzlib/tinf.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ int TINFCC tinf_zlib_uncompress_dyn(TINF_DATA *d, unsigned int sourceLen);

/* high-level API */

void TINFCC tinf_init();
void TINFCC tinf_init(void);

int TINFCC tinf_uncompress(void *dest, unsigned int *destLen,
const void *source, unsigned int sourceLen);
Expand Down
9 changes: 5 additions & 4 deletions extmod/uzlib/tinflate.c
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ static int tinf_inflate_block_data(TINF_DATA *d, TINF_TREE *lt, TINF_TREE *dt)

} else {

int length, dist, offs;
int i;
unsigned int length, offs, i;
int dist;

sym -= 257;

Expand All @@ -363,7 +363,7 @@ static int tinf_inflate_block_data(TINF_DATA *d, TINF_TREE *lt, TINF_TREE *dt)
/* copy match */
for (i = 0; i < length; ++i)
{
d->dest[i] = d->dest[i - offs];
d->dest[i] = d->dest[(int)(i - offs)];
}

d->dest += length;
Expand Down Expand Up @@ -432,7 +432,7 @@ static int tinf_inflate_dynamic_block(TINF_DATA *d)
* ---------------------- */

/* initialize global (static) data */
void tinf_init()
void tinf_init(void)
{
#ifdef RUNTIME_BITS_TABLES
/* build extra bits and base tables */
Expand All @@ -449,6 +449,7 @@ void tinf_init()
int tinf_uncompress(void *dest, unsigned int *destLen,
const void *source, unsigned int sourceLen)
{
(void)sourceLen;
TINF_DATA d;
int res;

Expand Down

0 comments on commit 02894b5

Please sign in to comment.