Need <sys/systm.h> for declaration, and make argument declarations match.
This commit is contained in:
parent
31632fbb01
commit
186d2ccb7f
@ -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.
|
||||
@ -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;
|
||||
const u_char *kfp = kfaddr;
|
||||
u_char *kdp = kdaddr;
|
||||
size_t l;
|
||||
int rv;
|
||||
|
Loading…
Reference in New Issue
Block a user