gas: blackfin: fix typo in BYTEOP16P comment
[deliverable/binutils-gdb.git] / bfd / compress.c
index a2fcff7d317c1e794ca2e65144d4c7a17e7e8cf9..fe1b0fd3b33f995a51e76037145c3b58f547543d 100644 (file)
@@ -1,5 +1,5 @@
-/* ELF attributes support (based on ARM EABI attributes).
-   Copyright 2008
+/* Compressed section support (intended for debug sections).
+   Copyright 2008, 2010
    Free Software Foundation, Inc.
 
    This file is part of BFD, the Binary File Descriptor library.
@@ -51,12 +51,10 @@ DESCRIPTION
 */
 
 bfd_boolean
-bfd_uncompress_section_contents (bfd_byte **buffer, bfd_size_type *size)
+bfd_uncompress_section_contents (bfd_byte **buffer ATTRIBUTE_UNUSED,
+                                bfd_size_type *size ATTRIBUTE_UNUSED)
 {
 #ifndef HAVE_ZLIB_H
-  /* These are just to quiet gcc.  */
-  buffer = 0;
-  size = 0;
   return FALSE;
 #else
   bfd_size_type compressed_size = *size;
@@ -89,7 +87,7 @@ bfd_uncompress_section_contents (bfd_byte **buffer, bfd_size_type *size)
   strm.avail_in = compressed_size - header_size;
   strm.next_in = (Bytef*) compressed_buffer + header_size;
   strm.avail_out = uncompressed_size;
-  uncompressed_buffer = bfd_malloc (uncompressed_size);
+  uncompressed_buffer = (bfd_byte *) bfd_malloc (uncompressed_size);
   if (! uncompressed_buffer)
     return FALSE;
 
This page took 0.02807 seconds and 4 git commands to generate.