aboutsummaryrefslogtreecommitdiff
path: root/bfd/format.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1994-01-25 18:14:25 +0000
committerIan Lance Taylor <ian@airs.com>1994-01-25 18:14:25 +0000
commit751446f635031a1bbafe755255a2ea09fdf2d948 (patch)
tree442c70fdd3f5f68736f052e7f36e42502e51823f /bfd/format.c
parent41d7671d53d6e75f9c3b52e09e7079a90083f482 (diff)
downloadgdb-751446f635031a1bbafe755255a2ea09fdf2d948.zip
gdb-751446f635031a1bbafe755255a2ea09fdf2d948.tar.gz
gdb-751446f635031a1bbafe755255a2ea09fdf2d948.tar.bz2
* format.c (bfd_check_format_matches): Cast result of
bfd_xmalloc_by_size_t. * opncls.c (_bfd_new_bfd): Avoid ANSI C prototype.
Diffstat (limited to 'bfd/format.c')
-rw-r--r--bfd/format.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/format.c b/bfd/format.c
index fc7945a..c7d994e 100644
--- a/bfd/format.c
+++ b/bfd/format.c
@@ -141,8 +141,8 @@ bfd_check_format_matches (abfd, format, matching)
if (matching)
{
*matching = matching_vector =
- bfd_xmalloc_by_size_t (sizeof (char *) *
- (_bfd_target_vector_entries + 1));
+ (char **) bfd_xmalloc_by_size_t (sizeof (char *) *
+ (_bfd_target_vector_entries + 1));
matching_vector[0] = NULL;
}
right_targ = 0;