From f6d5d0061c9aa781999b2f23d0fb84a2f0fc11f7 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Wed, 27 Jul 1994 05:10:52 +0000 Subject: [PATCH] * target.c (push_target): Cast result from xmalloc. --- gdb/ChangeLog | 4 ++++ gdb/target.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 0fb6a770391..00ed59880cd 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -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 diff --git a/gdb/target.c b/gdb/target.c index e95014aa6be..bf824523e3a 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -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; -- 2.30.2