From e42b0fc4c4090c92eaea94ec041e5baef01b0476 Mon Sep 17 00:00:00 2001 From: Paul Sokolovsky Date: Thu, 19 Mar 2015 00:01:26 +0200 Subject: [PATCH] tinf_init(): Use proper prototype for zero arguments. Patch by Damien George from https://github.com/micropython/micropython/pull/1082.patch --- src/tinf.h | 2 +- src/tinflate.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tinf.h b/src/tinf.h index d82959d..e9401f2 100644 --- a/src/tinf.h +++ b/src/tinf.h @@ -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); diff --git a/src/tinflate.c b/src/tinflate.c index d5197a5..6deeda2 100644 --- a/src/tinflate.c +++ b/src/tinflate.c @@ -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 */