Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/compat/netbsd32 get rid of remaining warnings.
details: https://anonhg.NetBSD.org/src/rev/a1ed500e9607
branches: trunk
changeset: 499354:a1ed500e9607
user: mrg <mrg%NetBSD.org@localhost>
date: Sat Nov 18 03:23:53 2000 +0000
description:
get rid of remaining warnings.
diffstat:
sys/compat/netbsd32/netbsd32_compat_10.c | 18 ++++++++++--------
1 files changed, 10 insertions(+), 8 deletions(-)
diffs (76 lines):
diff -r 245c665af4e6 -r a1ed500e9607 sys/compat/netbsd32/netbsd32_compat_10.c
--- a/sys/compat/netbsd32/netbsd32_compat_10.c Sat Nov 18 02:11:23 2000 +0000
+++ b/sys/compat/netbsd32/netbsd32_compat_10.c Sat Nov 18 03:23:53 2000 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: netbsd32_compat_10.c,v 1.7 2000/11/18 02:00:50 mrg Exp $ */
+/* $NetBSD: netbsd32_compat_10.c,v 1.8 2000/11/18 03:23:53 mrg Exp $ */
/*
* Copyright (c) 1994 Adam Glass and Charles M. Hannum. All rights reserved.
@@ -31,6 +31,7 @@
*/
#include "opt_sysv.h"
+#include "opt_compat_netbsd.h"
#include <sys/param.h>
#include <sys/systm.h>
@@ -99,7 +100,8 @@
case 2: /* semop() */
SCARG(&semop_args, semid) = SCARG(uap, a2);
- SCARG(&semop_args, sops) = (struct sembuf *)SCARG(uap, a3);
+ SCARG(&semop_args, sops) =
+ (struct sembuf *)(u_long)SCARG(uap, a3);
SCARG(&semop_args, nsops) = SCARG(uap, a4);
return (sys_semop(p, &semop_args, retval));
@@ -148,7 +150,7 @@
switch (SCARG(uap, which)) {
case 0: /* shmat() */
SCARG(&shmat_args, shmid) = SCARG(uap, a2);
- SCARG(&shmat_args, shmaddr) = (void *)SCARG(uap, a3);
+ SCARG(&shmat_args, shmaddr) = (void *)(u_long)SCARG(uap, a3);
SCARG(&shmat_args, shmflg) = SCARG(uap, a4);
return (sys_shmat(p, &shmat_args, retval));
@@ -156,11 +158,11 @@
SCARG(&shmctl_args, shmid) = SCARG(uap, a2);
SCARG(&shmctl_args, cmd) = SCARG(uap, a3);
SCARG(&shmctl_args, buf) =
- (struct netbsd32_shmid_ds14 *)SCARG(uap, a4);
+ (struct shmid_ds14 *)(u_long)SCARG(uap, a4);
return (compat_14_sys_shmctl(p, &shmctl_args, retval));
case 2: /* shmdt() */
- SCARG(&shmdt_args, shmaddr) = (void *)SCARG(uap, a2);
+ SCARG(&shmdt_args, shmaddr) = (void *)(u_long)SCARG(uap, a2);
return (sys_shmdt(p, &shmdt_args, retval));
case 3: /* shmget() */
@@ -218,7 +220,7 @@
SCARG(&msgctl_args, msqid) = SCARG(uap, a2);
SCARG(&msgctl_args, cmd) = SCARG(uap, a3);
SCARG(&msgctl_args, buf) =
- (struct msqid_ds14 *)SCARG(uap, a4);
+ (struct msqid_ds14 *)(u_long)SCARG(uap, a4);
return (compat_14_sys_msgctl(p, &msgctl_args, retval));
case 1: /* msgget() */
@@ -228,14 +230,14 @@
case 2: /* msgsnd() */
SCARG(&msgsnd_args, msqid) = SCARG(uap, a2);
- SCARG(&msgsnd_args, msgp) = (void *)SCARG(uap, a3);
+ SCARG(&msgsnd_args, msgp) = (void *)(u_long)SCARG(uap, a3);
SCARG(&msgsnd_args, msgsz) = SCARG(uap, a4);
SCARG(&msgsnd_args, msgflg) = SCARG(uap, a5);
return (sys_msgsnd(p, &msgsnd_args, retval));
case 3: /* msgrcv() */
SCARG(&msgrcv_args, msqid) = SCARG(uap, a2);
- SCARG(&msgrcv_args, msgp) = (void *)SCARG(uap, a3);
+ SCARG(&msgrcv_args, msgp) = (void *)(u_long)SCARG(uap, a3);
SCARG(&msgrcv_args, msgsz) = SCARG(uap, a4);
SCARG(&msgrcv_args, msgtyp) = SCARG(uap, a5);
SCARG(&msgrcv_args, msgflg) = SCARG(uap, a6);
Home |
Main Index |
Thread Index |
Old Index