summaryrefslogtreecommitdiff
path: root/gnu/usr.bin/binutils/bfd/nlm.c
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2004-05-17 21:54:57 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2004-05-17 21:54:57 +0000
commit631eeff208608ed7b44459bd6c8ae905bcd7e8b6 (patch)
tree7be124105a0929655708fbbc134f9c2e3189c3f3 /gnu/usr.bin/binutils/bfd/nlm.c
parenta7c8e0ae4a4b349099d02bc9d56bcf1979c0f0c3 (diff)
Resolve merge conflicts, adjust method of W^X handing (.sh files)
remove testsuites (not useable) remove mmalloc (not part of new binutils).
Diffstat (limited to 'gnu/usr.bin/binutils/bfd/nlm.c')
-rw-r--r--gnu/usr.bin/binutils/bfd/nlm.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gnu/usr.bin/binutils/bfd/nlm.c b/gnu/usr.bin/binutils/bfd/nlm.c
index 965ca26b60b..ec3237f3ce5 100644
--- a/gnu/usr.bin/binutils/bfd/nlm.c
+++ b/gnu/usr.bin/binutils/bfd/nlm.c
@@ -1,5 +1,5 @@
/* NLM (NetWare Loadable Module) executable support for BFD.
- Copyright 1993, 1994 Free Software Foundation, Inc.
+ Copyright 1993, 1994, 2001, 2002 Free Software Foundation, Inc.
This file is part of BFD, the Binary File Descriptor library.
@@ -25,26 +25,26 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
/* Make an NLM object. We just need to allocate the backend
information. */
-boolean
+bfd_boolean
nlm_mkobject (abfd)
bfd * abfd;
{
- nlm_tdata (abfd) =
- (struct nlm_obj_tdata *) bfd_zalloc (abfd, sizeof (struct nlm_obj_tdata));
+ bfd_size_type amt = sizeof (struct nlm_obj_tdata);
+ nlm_tdata (abfd) = (struct nlm_obj_tdata *) bfd_zalloc (abfd, amt);
if (nlm_tdata (abfd) == NULL)
- return (false);
+ return FALSE;
if (nlm_architecture (abfd) != bfd_arch_unknown)
bfd_default_set_arch_mach (abfd, nlm_architecture (abfd),
nlm_machine (abfd));
/* since everything is done at close time, do we need any initialization? */
- return (true);
+ return TRUE;
}
/* Set the architecture and machine for an NLM object. */
-boolean
+bfd_boolean
nlm_set_arch_mach (abfd, arch, machine)
bfd * abfd;
enum bfd_architecture arch;