From 5579919f7d343f9118d42f1c443daf74996983e3 Mon Sep 17 00:00:00 2001
From: Fred Fish <fnf@specifix.com>
Date: Tue, 9 Apr 1996 06:09:33 +0000
Subject: 	* Makefile.in (scm-exp.o, scm-lang.o, scm-valprint.o): Add
 targets and 	dependencies. 	* scm-lang.c (gdb_string.h): Include. 	*
 objfiles.c (add_to_objfile_sections): Cast second arg of obstack_grow 	call
 to correct type (char *). 	* cp-valprint.c (cp_print_static_field):
 Ditto. 	* somsolib.c (som_solib_create_inferior_hook): Add a
 declaration 	for external find_unwind_entry function (from hppa-tdep.c). 
 * remote-pa.c (remote_write_bytes, remote_read_bytes): Change 	type of second
 arg to "char *" to be type compatible with 	dcache. 	(remote_wait):
 Cast second arg to strtol to correct type. 	* hppa-tdep.c
 (compare_unwind_entries): Change argument types to 	"const void *" to be
 type compatible with qsort, and then 	assign to local args prior to use.

---
 gdb/hppa-tdep.c | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

(limited to 'gdb/hppa-tdep.c')

diff --git a/gdb/hppa-tdep.c b/gdb/hppa-tdep.c
index 86e3a257f09..efc8081cf0a 100644
--- a/gdb/hppa-tdep.c
+++ b/gdb/hppa-tdep.c
@@ -73,8 +73,7 @@ static int pc_in_interrupt_handler PARAMS ((CORE_ADDR));
 
 static int pc_in_linker_stub PARAMS ((CORE_ADDR));
 
-static int compare_unwind_entries PARAMS ((const struct unwind_table_entry *,
-					   const struct unwind_table_entry *));
+static int compare_unwind_entries PARAMS ((const void *, const void *));
 
 static void read_unwind_info PARAMS ((struct objfile *));
 
@@ -284,10 +283,13 @@ extract_17 (word)
    larger than the first, and zero if they are equal.  */
 
 static int
-compare_unwind_entries (a, b)
-     const struct unwind_table_entry *a;
-     const struct unwind_table_entry *b;
+compare_unwind_entries (arg1, arg2)
+     const void *arg1;
+     const void *arg2;
 {
+  const struct unwind_table_entry *a = arg1;
+  const struct unwind_table_entry *b = arg2;
+
   if (a->region_start > b->region_start)
     return 1;
   else if (a->region_start < b->region_start)
-- 
cgit v1.2.1