Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/ofppc/stand/ofwboot . ANSIfy
details: https://anonhg.NetBSD.org/src/rev/c82fa25c203d
branches: trunk
changeset: 548436:c82fa25c203d
user: aymeric <aymeric%NetBSD.org@localhost>
date: Thu Jun 26 20:44:51 2003 +0000
description:
. ANSIfy
. include alloc.h
. while there, fix a bug in prom2boot() introduced in rev. 1.11
diffstat:
sys/arch/ofppc/stand/ofwboot/boot.c | 21 ++++++++-------------
1 files changed, 8 insertions(+), 13 deletions(-)
diffs (72 lines):
diff -r fd3c77b10eb3 -r c82fa25c203d sys/arch/ofppc/stand/ofwboot/boot.c
--- a/sys/arch/ofppc/stand/ofwboot/boot.c Thu Jun 26 20:43:48 2003 +0000
+++ b/sys/arch/ofppc/stand/ofwboot/boot.c Thu Jun 26 20:44:51 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: boot.c,v 1.12 2002/09/18 01:45:04 chs Exp $ */
+/* $NetBSD: boot.c,v 1.13 2003/06/26 20:44:51 aymeric Exp $ */
/*-
* Copyright (c) 1997 The NetBSD Foundation, Inc.
@@ -92,6 +92,7 @@
#include <machine/cpu.h>
+#include "alloc.h"
#include "ofdev.h"
#include "openfirm.h"
@@ -109,12 +110,11 @@
static char *kernels[] = { "/netbsd.ofppc", "/netbsd", "/netbsd.gz", NULL };
static void
-prom2boot(dev)
- char *dev;
+prom2boot(char *dev)
{
char *cp, *ocp;
- ocp = cp;
+ ocp = dev;
cp = dev + strlen(dev) - 1;
for (; cp >= ocp; cp--) {
if (*cp == ':') {
@@ -125,9 +125,7 @@
}
static void
-parseargs(str, howtop)
- char *str;
- int *howtop;
+parseargs(char *str, int *howtop)
{
char *cp;
@@ -154,10 +152,7 @@
}
static void
-chain(entry, args, ssym, esym)
- void (*entry)();
- char *args;
- void *ssym, *esym;
+chain(void entry(), char *args, void *ssym, void *esym)
{
extern char end[], *cp;
u_int l, magic = 0x19730224;
@@ -186,14 +181,14 @@
}
__dead void
-_rtt()
+_rtt(void)
{
OF_exit();
}
void
-main()
+main(void)
{
extern char bootprog_name[], bootprog_rev[],
bootprog_maker[], bootprog_date[];
Home |
Main Index |
Thread Index |
Old Index