From 38cc35685df65aa6573b5c25077878d009a6cfba Mon Sep 17 00:00:00 2001 From: johns Date: Sun, 1 Mar 1998 09:24:29 +0000 Subject: Changed declaration of maddr in the dumpsys() so it is an unsigned int, old code semantics let it default to an int. AFter careful inspection of the surrounding code, it would appear that maddr has to be unsigned, and that the original code was a bug. Also added correct return type for sunos_exec_aout_makecmds() declaration. Both fixes are required for building on gcc 2.8... --- sys/arch/sparc/sparc/machdep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/arch') diff --git a/sys/arch/sparc/sparc/machdep.c b/sys/arch/sparc/sparc/machdep.c index 2a492b1cea5..dd2fb1a2ff0 100644 --- a/sys/arch/sparc/sparc/machdep.c +++ b/sys/arch/sparc/sparc/machdep.c @@ -1,4 +1,4 @@ -/* $OpenBSD: machdep.c,v 1.31 1998/02/26 10:39:04 johns Exp $ */ +/* $OpenBSD: machdep.c,v 1.32 1998/03/01 09:24:28 johns Exp $ */ /* $NetBSD: machdep.c,v 1.85 1997/09/12 08:55:02 pk Exp $ */ /* @@ -851,7 +851,7 @@ dumpsys() printf("memory "); for (mp = pmemarr, nmem = npmemarr; --nmem >= 0 && error == 0; mp++) { register unsigned i = 0, n; - register maddr = mp->addr; + register unsigned maddr = mp->addr; /* XXX - what's so special about PA 0 that we can't dump it? */ if (maddr == 0) { @@ -989,7 +989,7 @@ cpu_exec_aout_makecmds(p, epp) int error = ENOEXEC; #ifdef COMPAT_SUNOS - extern sunos_exec_aout_makecmds __P((struct proc *, struct exec_package *)); + extern int sunos_exec_aout_makecmds __P((struct proc *, struct exec_package *)); if ((error = sunos_exec_aout_makecmds(p, epp)) == 0) return 0; #endif -- cgit v1.2.3