diff options
author | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-11-27 19:54:57 +0000 |
---|---|---|
committer | Niklas Hallqvist <niklas@cvs.openbsd.org> | 1996-11-27 19:54:57 +0000 |
commit | 1dad1624ba7e422be25efc3e4786b134b01353b0 (patch) | |
tree | 0a2572d465b5d92c9855630692b27b1bc0ba7733 /sys/arch/alpha/stand/loadfile.c | |
parent | 4a14488d7c63678946c8d94c72d01460307f1b49 (diff) |
Make compilable in our env. Involved disabling ELF support,
reordering includes (due to -Wstrict-prototypes) and other -Wall goo
Diffstat (limited to 'sys/arch/alpha/stand/loadfile.c')
-rw-r--r-- | sys/arch/alpha/stand/loadfile.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/alpha/stand/loadfile.c b/sys/arch/alpha/stand/loadfile.c index ffe364ffde1..2dcf316f252 100644 --- a/sys/arch/alpha/stand/loadfile.c +++ b/sys/arch/alpha/stand/loadfile.c @@ -1,4 +1,4 @@ -/* $OpenBSD: loadfile.c,v 1.1 1996/10/30 22:40:33 niklas Exp $ */ +/* $OpenBSD: loadfile.c,v 1.2 1996/11/27 19:54:48 niklas Exp $ */ /* $NetBSD: loadfile.c,v 1.3 1996/09/23 04:32:44 cgd Exp $ */ /* @@ -41,14 +41,15 @@ #define ELFSIZE 64 -#include <lib/libsa/stand.h> #include <lib/libkern/libkern.h> +#include <lib/libsa/stand.h> #include <sys/param.h> #include <sys/exec.h> #include <sys/exec_ecoff.h> #include <sys/exec_elf.h> +#include <machine/rpb.h> #include <machine/prom.h> #define _KERNEL @@ -148,7 +149,7 @@ coff_exec(fd, coff, entryp) /* Zero out bss. */ if (coff->a.bsize != 0) { (void)printf("+%lu", coff->a.bsize); - bzero(coff->a.bss_start, coff->a.bsize); + bzero((void *)coff->a.bss_start, coff->a.bsize); } ffp_save = coff->a.text_start + coff->a.tsize; |