aboutsummaryrefslogtreecommitdiff
path: root/binutils/objdump.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-06-03 13:02:04 +0000
committerAlan Modra <amodra@gmail.com>2002-06-03 13:02:04 +0000
commit28b18af1b9a0b474144e7224b359a60abe765b77 (patch)
tree72eeae6879608fb977714425de8c4203e8cc27a4 /binutils/objdump.c
parentbfba206a7e0240ba5a3a8f8e2eaff859e323c87a (diff)
downloadgdb-28b18af1b9a0b474144e7224b359a60abe765b77.zip
gdb-28b18af1b9a0b474144e7224b359a60abe765b77.tar.gz
gdb-28b18af1b9a0b474144e7224b359a60abe765b77.tar.bz2
* objdump.c: Fix formatting.
Diffstat (limited to 'binutils/objdump.c')
-rw-r--r--binutils/objdump.c14
1 files changed, 5 insertions, 9 deletions
diff --git a/binutils/objdump.c b/binutils/objdump.c
index dce1308..59a1731 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -1,6 +1,6 @@
/* objdump.c -- dump information about an object file.
Copyright 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
- 2000, 2001
+ 2000, 2001, 2002
Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -390,11 +390,9 @@ slurp_symtab (abfd)
storage = bfd_get_symtab_upper_bound (abfd);
if (storage < 0)
bfd_fatal (bfd_get_filename (abfd));
-
if (storage)
- {
- sy = (asymbol **) xmalloc (storage);
- }
+ sy = (asymbol **) xmalloc (storage);
+
symcount = bfd_canonicalize_symtab (abfd, sy);
if (symcount < 0)
bfd_fatal (bfd_get_filename (abfd));
@@ -424,11 +422,9 @@ slurp_dynamic_symtab (abfd)
bfd_fatal (bfd_get_filename (abfd));
}
-
if (storage)
- {
- sy = (asymbol **) xmalloc (storage);
- }
+ sy = (asymbol **) xmalloc (storage);
+
dynsymcount = bfd_canonicalize_dynamic_symtab (abfd, sy);
if (dynsymcount < 0)
bfd_fatal (bfd_get_filename (abfd));