Delete some unnecessary PTR uses.
authorAndrew Cagney <cagney@redhat.com>
Wed, 6 Jun 2001 17:12:30 +0000 (17:12 +0000)
committerAndrew Cagney <cagney@redhat.com>
Wed, 6 Jun 2001 17:12:30 +0000 (17:12 +0000)
gdb/ChangeLog
gdb/symfile.c

index 6fa1a5c..a7be1b1 100644 (file)
@@ -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
index 5535eb6..ee4d65c 100644 (file)
@@ -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;