summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDale Rahn <drahn@cvs.openbsd.org>2001-06-24 05:05:23 +0000
committerDale Rahn <drahn@cvs.openbsd.org>2001-06-24 05:05:23 +0000
commit53d8e208fade7636a33aec579539356ffc1dbb2e (patch)
treea12a665d9e5303e735bc3776f53b134b1419719b
parentc773d86257b04030338728671c447fd61db92e1d (diff)
include header for prototype, declare correctly, cast for local variable use.
-rw-r--r--sys/arch/powerpc/powerpc/copystr.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/powerpc/powerpc/copystr.c b/sys/arch/powerpc/powerpc/copystr.c
index af2ad68731b..a908f60e4ff 100644
--- a/sys/arch/powerpc/powerpc/copystr.c
+++ b/sys/arch/powerpc/powerpc/copystr.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: copystr.c,v 1.3 1997/10/13 13:42:56 pefo Exp $ */
+/* $OpenBSD: copystr.c,v 1.4 2001/06/24 05:05:22 drahn Exp $ */
/*-
* Copyright (C) 1995 Wolfgang Solfrank.
@@ -32,18 +32,19 @@
*/
#include <sys/param.h>
#include <sys/errno.h>
+#include <sys/systm.h>
/*
* Emulate copyinstr.
*/
int
copystr(kfaddr, kdaddr, len, done)
- void *kfaddr;
+ const void *kfaddr;
void *kdaddr;
size_t len;
size_t *done;
{
- u_char *kfp = kfaddr;
+ u_char *kfp = (u_char *)kfaddr;
u_char *kdp = kdaddr;
size_t l;