diff options
author | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-07-27 05:10:52 +0000 |
---|---|---|
committer | Jim Kingdon <jkingdon@engr.sgi.com> | 1994-07-27 05:10:52 +0000 |
commit | f6d5d0061c9aa781999b2f23d0fb84a2f0fc11f7 (patch) | |
tree | 1f008b13c413e6e4051776308c1b7586f1fafbf7 /gdb/target.c | |
parent | beb773f39fbd4ed51c418aafe9fa1c9cfd3ea311 (diff) | |
download | gdb-f6d5d0061c9aa781999b2f23d0fb84a2f0fc11f7.zip gdb-f6d5d0061c9aa781999b2f23d0fb84a2f0fc11f7.tar.gz gdb-f6d5d0061c9aa781999b2f23d0fb84a2f0fc11f7.tar.bz2 |
* target.c (push_target): Cast result from xmalloc.
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/target.c b/gdb/target.c index e95014a..bf82452 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; |