summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2001-07-01 04:34:25 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2001-07-01 04:34:25 +0000
commit1c514abd79a18048a168e4c685f73334cc2048a1 (patch)
tree9c7fd233b5aa7e7a39df3ea53d71b63a1bd573cf
parent7fe43a0fa27770666874f11111cf4f3bc7319666 (diff)
More prototype/header file cleanup.
-rw-r--r--sys/arch/powerpc/powerpc/db_interface.c4
-rw-r--r--sys/arch/powerpc/powerpc/opendev.c10
-rw-r--r--sys/arch/powerpc/powerpc/subyte.c7
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 <sys/param.h>
#include <sys/proc.h>
+#include <sys/systm.h>
#include <machine/db_machdep.h>
+#include <ddb/db_extern.h>
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 <machine/stdarg.h>
#include <dev/ofw/openfirm.h>
+#include <lib/libkern/libkern.h>
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 <sys/types.h>
+#include <sys/systm.h>
+
/*
* Emulate subyte.
*/
int
subyte(addr,c)
-char *addr;
+void *addr;
unsigned char c;
{
if (copyout(&c,addr,sizeof(c)))