aboutsummaryrefslogtreecommitdiff
path: root/binutils/objdump.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@codesourcery.com>1994-01-23 00:31:14 +0000
committerStan Shebs <shebs@codesourcery.com>1994-01-23 00:31:14 +0000
commit378536737534d2a8710807f1e5fbed43d372e6a4 (patch)
tree14fa89bafa624d6fa760db562308213f8354a617 /binutils/objdump.c
parentdfd4c728fa4aad5c2975966d280d3ae976dce121 (diff)
downloadgdb-378536737534d2a8710807f1e5fbed43d372e6a4.zip
gdb-378536737534d2a8710807f1e5fbed43d372e6a4.tar.gz
gdb-378536737534d2a8710807f1e5fbed43d372e6a4.tar.bz2
Minor MPW compatibility tweaks.
Diffstat (limited to 'binutils/objdump.c')
-rw-r--r--binutils/objdump.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/binutils/objdump.c b/binutils/objdump.c
index 5da041c..9214f06 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -1,5 +1,5 @@
/* objdump.c -- dump information about an object file.
- Copyright 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
+ Copyright 1990, 1991, 1992, 1993, 1994 Free Software Foundation, Inc.
This file is part of GNU Binutils.
@@ -219,9 +219,10 @@ int remove_useless_symbols (syms, count)
}
-/* Sort symbols into value order */
+/* Sort symbols into value order. */
+
static int
-comp (ap, bp)
+compare_symbols (ap, bp)
PTR ap;
PTR bp;
{
@@ -431,7 +432,7 @@ disassemble_data (abfd)
symcount = remove_useless_symbols (syms, symcount);
/* Sort the symbols into section and symbol order */
- (void) qsort (syms, symcount, sizeof (asymbol *), comp);
+ (void) qsort (syms, symcount, sizeof (asymbol *), compare_symbols);
if (machine != (char *) NULL)
{