diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2001-06-24 05:02:28 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2001-06-24 05:02:28 +0000 |
commit | c773d86257b04030338728671c447fd61db92e1d (patch) | |
tree | 78b5e3a5f57a01b2ec967b0210aae91057498411 /sys/arch | |
parent | de1a2f3eb2dea0a51c4a4d168ac867a3ecf43bd7 (diff) |
header file for prototypes, local variable for const input parameter.
Diffstat (limited to 'sys/arch')
-rw-r--r-- | sys/arch/powerpc/powerpc/copyoutstr.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/arch/powerpc/powerpc/copyoutstr.c b/sys/arch/powerpc/powerpc/copyoutstr.c index 6a72e2080ba..f190ea61d9a 100644 --- a/sys/arch/powerpc/powerpc/copyoutstr.c +++ b/sys/arch/powerpc/powerpc/copyoutstr.c @@ -1,4 +1,4 @@ -/* $OpenBSD: copyoutstr.c,v 1.4 2000/01/14 05:42:17 rahnds Exp $ */ +/* $OpenBSD: copyoutstr.c,v 1.5 2001/06/24 05:02:27 drahn Exp $ */ /*- * Copyright (C) 1995 Wolfgang Solfrank. @@ -32,18 +32,19 @@ */ #include <sys/param.h> #include <sys/errno.h> +#include <sys/systm.h> /* * Emulate copyoutstr. */ int copyoutstr(kaddr, udaddr, len, done) - void *kaddr; + const void *kaddr; void *udaddr; size_t len; size_t *done; { - u_char *kp = kaddr; + u_char *kp = (u_char *)kaddr; int l; for (l = 0; len-- > 0; l++) { |