* target.c (push_target): Cast result from xmalloc.
authorJim Kingdon <jkingdon@engr.sgi.com>
Wed, 27 Jul 1994 05:10:52 +0000 (05:10 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Wed, 27 Jul 1994 05:10:52 +0000 (05:10 +0000)
gdb/ChangeLog
gdb/target.c

index 0fb6a77..00ed598 100644 (file)
@@ -1,3 +1,7 @@
+Tue Jul 26 14:15:53 1994  Jim Kingdon  (kingdon@lioth.cygnus.com)
+
+       * target.c (push_target): Cast result from xmalloc.
+
 Tue Jul 26 18:20:46 1994  Paul Flinders  (ptf@smee)
 
        * elfread.c (elf_symtab_read): Discard compiler labels generated
index e95014a..bf82452 100644 (file)
@@ -420,7 +420,8 @@ push_target (t)
 
   /* We have removed all targets in our stratum, now add the new one.  */
 
-  tmp = xmalloc (sizeof (struct target_stack_item));
+  tmp = (struct target_stack_item *)
+    xmalloc (sizeof (struct target_stack_item));
   tmp->next = cur;
   tmp->target_ops = t;