From c773d86257b04030338728671c447fd61db92e1d Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Sun, 24 Jun 2001 05:02:28 +0000 Subject: header file for prototypes, local variable for const input parameter. --- sys/arch/powerpc/powerpc/copyoutstr.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'sys') 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 #include +#include /* * 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++) { -- cgit v1.2.3