From: Andrew Cagney Date: Wed, 6 Jun 2001 17:12:30 +0000 (+0000) Subject: Delete some unnecessary PTR uses. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=0cd64fe2f15055a62c91906d8a660c607413cdc5;p=binutils-gdb.git Delete some unnecessary PTR uses. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6fa1a5c0af1..a7be1b1ef89 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2001-06-06 Andrew Cagney + + * symfile.c (compare_psymbols): Replace PTR with void*. Delete + declaration. + (compare_symbols): Ditto. + 2001-06-06 Jonathan Larmour * arch-utils.c (generic_prepare_to_proceed): Allow for having diff --git a/gdb/symfile.c b/gdb/symfile.c index 5535eb6ed4d..ee4d65cf962 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;