diff options
author | johns <johns@cvs.openbsd.org> | 1998-03-01 09:24:29 +0000 |
---|---|---|
committer | johns <johns@cvs.openbsd.org> | 1998-03-01 09:24:29 +0000 |
commit | 38cc35685df65aa6573b5c25077878d009a6cfba (patch) | |
tree | 409a35bacc3b24160c7e234f25a82cfbc9483c10 /sys/arch | |
parent | 8228228b2528db3555bc82b23926cdadf628b427 (diff) |
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...
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/sparc/sparc/machdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
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 |