Need <sys/systm.h> for declaration, and make argument declarations match.
This commit is contained in:
parent
4d6a384b1b
commit
080f786189
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: subyte.c,v 1.1 1996/09/30 16:34:54 ws Exp $ */
|
||||
/* $NetBSD: subyte.c,v 1.2 2000/06/09 14:05:47 kleink Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (C) 1993 Wolfgang Solfrank.
|
||||
|
@ -31,13 +31,16 @@
|
|||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <sys/systm.h>
|
||||
|
||||
/*
|
||||
* Emulate subyte.
|
||||
*/
|
||||
|
||||
int
|
||||
subyte(addr,c)
|
||||
char *addr;
|
||||
unsigned char c;
|
||||
void *addr;
|
||||
unsigned char c;
|
||||
{
|
||||
if (copyout(&c,addr,sizeof(c)))
|
||||
return -1;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: suswintr.c,v 1.1 1996/09/30 16:34:54 ws Exp $ */
|
||||
/* $NetBSD: suswintr.c,v 1.2 2000/06/09 14:05:48 kleink Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (C) 1994 Wolfgang Solfrank.
|
||||
|
@ -31,6 +31,8 @@
|
|||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <sys/systm.h>
|
||||
|
||||
/*
|
||||
* Emulate suswintr
|
||||
*
|
||||
|
@ -38,8 +40,8 @@
|
|||
*/
|
||||
int
|
||||
suswintr(addr,s)
|
||||
char *addr;
|
||||
unsigned short s;
|
||||
void *addr;
|
||||
short s;
|
||||
{
|
||||
return -1;
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: suword.c,v 1.1 1996/09/30 16:34:55 ws Exp $ */
|
||||
/* $NetBSD: suword.c,v 1.2 2000/06/09 14:05:49 kleink Exp $ */
|
||||
|
||||
/*-
|
||||
* Copyright (C) 1993 Wolfgang Solfrank.
|
||||
|
@ -31,13 +31,15 @@
|
|||
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
#include <sys/systm.h>
|
||||
|
||||
/*
|
||||
* Emulate suword
|
||||
*/
|
||||
int
|
||||
suword(addr,l)
|
||||
char *addr;
|
||||
unsigned long l;
|
||||
void *addr;
|
||||
long l;
|
||||
{
|
||||
if (copyout(&l,addr,sizeof(l)))
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue