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

This commit is contained in:
kleink 2000-06-09 14:05:47 +00:00
parent 4d6a384b1b
commit 080f786189
3 changed files with 16 additions and 9 deletions

View File

@ -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. * Copyright (C) 1993 Wolfgang Solfrank.
@ -31,13 +31,16 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <sys/systm.h>
/* /*
* Emulate subyte. * Emulate subyte.
*/ */
int int
subyte(addr,c) subyte(addr,c)
char *addr; void *addr;
unsigned char c; unsigned char c;
{ {
if (copyout(&c,addr,sizeof(c))) if (copyout(&c,addr,sizeof(c)))
return -1; return -1;

View File

@ -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. * Copyright (C) 1994 Wolfgang Solfrank.
@ -31,6 +31,8 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <sys/systm.h>
/* /*
* Emulate suswintr * Emulate suswintr
* *
@ -38,8 +40,8 @@
*/ */
int int
suswintr(addr,s) suswintr(addr,s)
char *addr; void *addr;
unsigned short s; short s;
{ {
return -1; return -1;
} }

View File

@ -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. * Copyright (C) 1993 Wolfgang Solfrank.
@ -31,13 +31,15 @@
* ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
#include <sys/systm.h>
/* /*
* Emulate suword * Emulate suword
*/ */
int int
suword(addr,l) suword(addr,l)
char *addr; void *addr;
unsigned long l; long l;
{ {
if (copyout(&l,addr,sizeof(l))) if (copyout(&l,addr,sizeof(l)))
return -1; return -1;