* som.c: Cast return values from BFD memory allocation routines to
authorJeff Law <law@redhat.com>
Thu, 10 Feb 1994 05:36:41 +0000 (05:36 +0000)
committerJeff Law <law@redhat.com>
Thu, 10 Feb 1994 05:36:41 +0000 (05:36 +0000)
        avoid warnings from the HP compiler.

bfd/ChangeLog
bfd/som.c

index 35825c097781ffea25d5c8a675ab84f58081009f..11bd45b6413ca364ca92510b6c80b490fab6053b 100644 (file)
@@ -1,3 +1,8 @@
+Wed Feb  9 21:34:58 1994  Jeffrey A. Law  (law@snake.cs.utah.edu)
+
+       * som.c: Cast return values from BFD memory allocation routines to
+       avoid warnings from the HP compiler.
+
 Wed Feb  9 12:55:02 1994  Ian Lance Taylor  (ian@tweedledumb.cygnus.com)
 
        * coff-alpha.c (alpha_relocate_section): Accept a LITERAL
index eef9c73bc2320a48f56b695622ce2c9288a714d6..92a010bd7e799a656357b599194a05e1b162a432 100644 (file)
--- a/bfd/som.c
+++ b/bfd/som.c
@@ -1822,7 +1822,8 @@ som_mkobject (abfd)
       bfd_error = no_memory;
       return false;
     }
-  obj_som_file_hdr (abfd) = bfd_zalloc (abfd, sizeof (struct header));
+  obj_som_file_hdr (abfd)
+    = (struct header *) bfd_zalloc (abfd, sizeof (struct header));
   if (obj_som_file_hdr (abfd) == NULL)
 
     {
@@ -3878,8 +3879,8 @@ som_new_section_hook (abfd, newsect)
      bfd *abfd;
      asection *newsect;
 {
-  newsect->used_by_bfd = (struct som_section_data_struct *)
-    bfd_zalloc (abfd, sizeof (struct som_section_data_struct));
+  newsect->used_by_bfd
+    = (PTR) bfd_zalloc (abfd, sizeof (struct som_section_data_struct));
   newsect->alignment_power = 3;
 
   /* Initialize the subspace_index field to -1 so that it does
@@ -3973,9 +3974,9 @@ bfd_som_attach_aux_hdr (abfd, type, string)
 
       if (len % 4)
        pad = (4 - (len % 4));
-      obj_som_version_hdr (abfd)
-       bfd_zalloc (abfd, sizeof (struct aux_id)
-                             + sizeof (unsigned int) + len + pad);
+      obj_som_version_hdr (abfd) = (struct user_string_aux_hdr *)
+       bfd_zalloc (abfd, sizeof (struct aux_id)
+                           + sizeof (unsigned int) + len + pad);
       obj_som_version_hdr (abfd)->header_id.type = VERSION_AUX_ID;
       obj_som_version_hdr (abfd)->header_id.length = len + pad;
       obj_som_version_hdr (abfd)->header_id.length += sizeof (int);
@@ -3989,9 +3990,9 @@ bfd_som_attach_aux_hdr (abfd, type, string)
 
       if (len % 4)
        pad = (4 - (len % 4));
-      obj_som_copyright_hdr (abfd)
-       bfd_zalloc (abfd, sizeof (struct aux_id)
-                             + sizeof (unsigned int) + len + pad);
+      obj_som_copyright_hdr (abfd) = (struct copyright_aux_hdr *)
+       bfd_zalloc (abfd, sizeof (struct aux_id)
+                           + sizeof (unsigned int) + len + pad);
       obj_som_copyright_hdr (abfd)->header_id.type = COPYRIGHT_AUX_ID;
       obj_som_copyright_hdr (abfd)->header_id.length = len + pad;
       obj_som_copyright_hdr (abfd)->header_id.length += sizeof (int);
This page took 0.032003 seconds and 4 git commands to generate.