diff options
author | Andrew Cagney <cagney@redhat.com> | 2001-06-06 17:12:30 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2001-06-06 17:12:30 +0000 |
commit | 0cd64fe2f15055a62c91906d8a660c607413cdc5 (patch) | |
tree | 944fb5ccc1fcad2a4a8b45f020d93026b2a7638d | |
parent | 879db8be1ae5db44e4c72d7126a11154c65d8427 (diff) | |
download | gdb-0cd64fe2f15055a62c91906d8a660c607413cdc5.zip gdb-0cd64fe2f15055a62c91906d8a660c607413cdc5.tar.gz gdb-0cd64fe2f15055a62c91906d8a660c607413cdc5.tar.bz2 |
Delete some unnecessary PTR uses.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/symfile.c | 8 |
2 files changed, 8 insertions, 6 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6fa1a5c..a7be1b1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2001-06-06 Andrew Cagney <ac131313@redhat.com> + + * symfile.c (compare_psymbols): Replace PTR with void*. Delete + declaration. + (compare_symbols): Ditto. + 2001-06-06 Jonathan Larmour <jlarmour@redhat.com> * arch-utils.c (generic_prepare_to_proceed): Allow for having diff --git a/gdb/symfile.c b/gdb/symfile.c index 5535eb6..ee4d65c 100644 --- a/gdb/symfile.c +++ b/gdb/symfile.c @@ -117,10 +117,6 @@ static void add_shared_symbol_files_command (char *, int); static void cashier_psymtab (struct partial_symtab *); -static int compare_psymbols (const PTR, const PTR); - -static int compare_symbols (const PTR, const PTR); - bfd *symfile_bfd_open (char *); static void find_sym_fns (struct objfile *); @@ -208,7 +204,7 @@ int auto_solib_add = 1; comparison function takes two "void *" pointers. */ static int -compare_symbols (const PTR s1p, const PTR s2p) +compare_symbols (const void *s1p, const void *s2p) { register struct symbol **s1, **s2; @@ -240,7 +236,7 @@ compare_symbols (const PTR s1p, const PTR s2p) */ static int -compare_psymbols (const PTR s1p, const PTR s2p) +compare_psymbols (const void *s1p, const void *s2p) { register struct partial_symbol **s1, **s2; register char *st1, *st2; |