Need <sys/systm.h> for declaration, and make argument declarations match.

This commit is contained in:
kleink 2000-06-08 06:47:17 +00:00
parent 31632fbb01
commit 186d2ccb7f

View File

@ -1,4 +1,4 @@
/* $NetBSD: copystr.c,v 1.2 2000/02/19 23:29:17 chs Exp $ */ /* $NetBSD: copystr.c,v 1.3 2000/06/08 06:47:17 kleink Exp $ */
/*- /*-
* Copyright (C) 1995 Wolfgang Solfrank. * Copyright (C) 1995 Wolfgang Solfrank.
@ -32,18 +32,19 @@
*/ */
#include <sys/param.h> #include <sys/param.h>
#include <sys/errno.h> #include <sys/errno.h>
#include <sys/systm.h>
/* /*
* Emulate copyinstr. * Emulate copyinstr.
*/ */
int int
copystr(kfaddr, kdaddr, len, done) copystr(kfaddr, kdaddr, len, done)
void *kfaddr; const void *kfaddr;
void *kdaddr; void *kdaddr;
size_t len; size_t len;
size_t *done; size_t *done;
{ {
u_char *kfp = kfaddr; const u_char *kfp = kfaddr;
u_char *kdp = kdaddr; u_char *kdp = kdaddr;
size_t l; size_t l;
int rv; int rv;