From 1c514abd79a18048a168e4c685f73334cc2048a1 Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Sun, 1 Jul 2001 04:34:25 +0000 Subject: More prototype/header file cleanup. --- sys/arch/powerpc/powerpc/db_interface.c | 4 +++- sys/arch/powerpc/powerpc/opendev.c | 10 +++++----- sys/arch/powerpc/powerpc/subyte.c | 7 +++++-- 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/sys/arch/powerpc/powerpc/db_interface.c b/sys/arch/powerpc/powerpc/db_interface.c index 963e5d8ec9d..a9865ae295e 100644 --- a/sys/arch/powerpc/powerpc/db_interface.c +++ b/sys/arch/powerpc/powerpc/db_interface.c @@ -1,9 +1,11 @@ -/* $OpenBSD: db_interface.c,v 1.4 2001/06/24 22:00:13 drahn Exp $ */ +/* $OpenBSD: db_interface.c,v 1.5 2001/07/01 04:34:24 drahn Exp $ */ #include #include +#include #include +#include void Debugger() { diff --git a/sys/arch/powerpc/powerpc/opendev.c b/sys/arch/powerpc/powerpc/opendev.c index 6cbd33ab6b3..5c880293c5b 100644 --- a/sys/arch/powerpc/powerpc/opendev.c +++ b/sys/arch/powerpc/powerpc/opendev.c @@ -1,4 +1,4 @@ -/* $OpenBSD: opendev.c,v 1.3 1999/10/28 04:28:03 rahnds Exp $ */ +/* $OpenBSD: opendev.c,v 1.4 2001/07/01 04:34:24 drahn Exp $ */ /* $NetBSD: openfirm.c,v 1.1 1996/09/30 16:34:52 ws Exp $ */ /* @@ -37,13 +37,11 @@ #include #include +#include extern void ofw_stack __P((void)); extern void ofbcopy __P((const void *, void *, size_t)); - - - int OF_instance_to_package(ihandle) int ihandle; @@ -273,11 +271,13 @@ OF_read(handle, addr, len) ofbcopy(OF_buf, addr, args.actual); act += args.actual; } - if (args.actual < l) + if (args.actual < l) { if (act) return act; else return args.actual; + + } } return act; } diff --git a/sys/arch/powerpc/powerpc/subyte.c b/sys/arch/powerpc/powerpc/subyte.c index 95631b372a9..3e9452e8f0b 100644 --- a/sys/arch/powerpc/powerpc/subyte.c +++ b/sys/arch/powerpc/powerpc/subyte.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subyte.c,v 1.2 1996/12/28 06:22:19 rahnds Exp $ */ +/* $OpenBSD: subyte.c,v 1.3 2001/07/01 04:34:24 drahn Exp $ */ /* $NetBSD: subyte.c,v 1.1 1996/09/30 16:34:54 ws Exp $ */ /*- @@ -32,12 +32,15 @@ * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#include +#include + /* * Emulate subyte. */ int subyte(addr,c) -char *addr; +void *addr; unsigned char c; { if (copyout(&c,addr,sizeof(c))) -- cgit v1.2.3