summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-06-21 23:35:42 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-06-21 23:35:42 +0000
commit06aa74c96d45b2c1d0cfe7a8ebe95ad3286b38e7 (patch)
tree285ece4b7f0c2be81ee15d757dc683debddd9c6e /sys
parent88db842a291c43de6f4c89d019c1379faa1b9913 (diff)
avoid another sparc egcs bug, apparently
Diffstat (limited to 'sys')
-rw-r--r--sys/arch/sparc/stand/boot/boot.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/arch/sparc/stand/boot/boot.c b/sys/arch/sparc/stand/boot/boot.c
index 68fb03a3b42..91cab33ac59 100644
--- a/sys/arch/sparc/stand/boot/boot.c
+++ b/sys/arch/sparc/stand/boot/boot.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: boot.c,v 1.1 1997/09/17 10:46:15 downsj Exp $ */
+/* $OpenBSD: boot.c,v 1.2 1999/06/21 23:35:41 deraadt Exp $ */
/* $NetBSD: boot.c,v 1.2 1997/09/14 19:27:21 pk Exp $ */
/*-
@@ -43,8 +43,8 @@
#include <sparc/stand/common/promdev.h>
-static void copyunix __P((int, char *));
-static void promsyms __P((int, struct exec *));
+void copyunix __P((int, char *));
+void promsyms __P((int, struct exec *));
int debug;
int netif_debug;
@@ -130,7 +130,7 @@ loadfile(io, addr)
goto shread;
addr += x.a_data;
printf("+%d", x.a_bss);
- for (i = 0; i < x.a_bss; i++)
+ for (i = x.a_bss; i ; --i)
*addr++ = 0;
if (x.a_syms != 0) {
bcopy(&x.a_syms, addr, sizeof(x.a_syms));
@@ -182,7 +182,7 @@ struct syms {
u_int32_t index;
};
-static void
+void
sort(syms, n)
struct syms *syms;
int n;