mirror of
https://github.com/bminor/binutils-gdb.git
synced 2025-12-28 18:10:46 +00:00
* coffcode.h: Added a cast to void when a bfd_set_section_*()
macro's return value is ignored. * elf32-hppa.c: Likewise. * elf32-tic6x.c: Likewise. * mach-o.c: Likewise. * mmo.c: Likewise. * opncls.c: Likewise. * peicode.h: Likewise. * elf32-m32r.c: Check return value of bfd_set_section_*(). * elfnn-ia64.c: Likewise. * elfxx-mips.c: Likewise. * vms-alpha.c: Likewise.
This commit is contained in:
@@ -45,19 +45,20 @@ decompress_contents (bfd_byte *compressed_buffer,
|
||||
strm.next_in = (Bytef*) compressed_buffer + 12;
|
||||
strm.avail_out = uncompressed_size;
|
||||
|
||||
BFD_ASSERT (Z_OK == 0);
|
||||
rc = inflateInit (&strm);
|
||||
while (strm.avail_in > 0 && strm.avail_out > 0)
|
||||
{
|
||||
if (rc != Z_OK)
|
||||
return FALSE;
|
||||
break;
|
||||
strm.next_out = ((Bytef*) uncompressed_buffer
|
||||
+ (uncompressed_size - strm.avail_out));
|
||||
rc = inflate (&strm, Z_FINISH);
|
||||
if (rc != Z_STREAM_END)
|
||||
return FALSE;
|
||||
break;
|
||||
rc = inflateReset (&strm);
|
||||
}
|
||||
rc = inflateEnd (&strm);
|
||||
rc |= inflateEnd (&strm);
|
||||
return rc == Z_OK && strm.avail_out == 0;
|
||||
}
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user