From 06aa74c96d45b2c1d0cfe7a8ebe95ad3286b38e7 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Mon, 21 Jun 1999 23:35:42 +0000 Subject: avoid another sparc egcs bug, apparently --- sys/arch/sparc/stand/boot/boot.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'sys') 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 -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; -- cgit v1.2.3