Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/powerpc/powerpc Need <sys/systm.h> for declaration, ...
details: https://anonhg.NetBSD.org/src/rev/a4136d26a3d4
branches: trunk
changeset: 487580:a4136d26a3d4
user: kleink <kleink%NetBSD.org@localhost>
date: Fri Jun 09 14:05:47 2000 +0000
description:
Need <sys/systm.h> for declaration, and make argument declarations match.
diffstat:
sys/arch/powerpc/powerpc/subyte.c | 9 ++++++---
sys/arch/powerpc/powerpc/suswintr.c | 8 +++++---
sys/arch/powerpc/powerpc/suword.c | 8 +++++---
3 files changed, 16 insertions(+), 9 deletions(-)
diffs (84 lines):
diff -r d64afbda0cc6 -r a4136d26a3d4 sys/arch/powerpc/powerpc/subyte.c
--- a/sys/arch/powerpc/powerpc/subyte.c Fri Jun 09 14:05:04 2000 +0000
+++ b/sys/arch/powerpc/powerpc/subyte.c Fri Jun 09 14:05:47 2000 +0000
@@ -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;
diff -r d64afbda0cc6 -r a4136d26a3d4 sys/arch/powerpc/powerpc/suswintr.c
--- a/sys/arch/powerpc/powerpc/suswintr.c Fri Jun 09 14:05:04 2000 +0000
+++ b/sys/arch/powerpc/powerpc/suswintr.c Fri Jun 09 14:05:47 2000 +0000
@@ -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;
}
diff -r d64afbda0cc6 -r a4136d26a3d4 sys/arch/powerpc/powerpc/suword.c
--- a/sys/arch/powerpc/powerpc/suword.c Fri Jun 09 14:05:04 2000 +0000
+++ b/sys/arch/powerpc/powerpc/suword.c Fri Jun 09 14:05:47 2000 +0000
@@ -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;
Home |
Main Index |
Thread Index |
Old Index