tinfgzip: Fixes for pedantic compiler warnings.
This commit is contained in:
parent
d83f7d4f16
commit
3fb1f4f7d8
1 changed files with 4 additions and 1 deletions
|
|
@ -41,6 +41,9 @@
|
||||||
#define FNAME 8
|
#define FNAME 8
|
||||||
#define FCOMMENT 16
|
#define FCOMMENT 16
|
||||||
|
|
||||||
|
void tinf_skip_bytes(TINF_DATA *d, int num);
|
||||||
|
uint16_t tinf_get_uint16(TINF_DATA *d);
|
||||||
|
|
||||||
void tinf_skip_bytes(TINF_DATA *d, int num)
|
void tinf_skip_bytes(TINF_DATA *d, int num)
|
||||||
{
|
{
|
||||||
while (num--) uzlib_get_byte(d);
|
while (num--) uzlib_get_byte(d);
|
||||||
|
|
@ -92,7 +95,7 @@ int uzlib_gzip_parse_header(TINF_DATA *d)
|
||||||
/* check header crc if present */
|
/* check header crc if present */
|
||||||
if (flg & FHCRC)
|
if (flg & FHCRC)
|
||||||
{
|
{
|
||||||
unsigned int hcrc = tinf_get_uint16(d);
|
/*unsigned int hcrc =*/ tinf_get_uint16(d);
|
||||||
|
|
||||||
// TODO: Check!
|
// TODO: Check!
|
||||||
// if (hcrc != (tinf_crc32(src, start - src) & 0x0000ffff))
|
// if (hcrc != (tinf_crc32(src, start - src) & 0x0000ffff))
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue