diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-11-26 09:17:42 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-11-26 09:17:42 +0000 |
commit | f2eb552cb851dda28c686807bc78ca9983a01193 (patch) | |
tree | b4062a8d0da63dcf6f8c8298f15a7afd395d38cb /sys/compat/linux | |
parent | 12d89b20e1d5d54c743ee59f536d318a478d8a5a (diff) |
fix shmctl IPC_STAT
Diffstat (limited to 'sys/compat/linux')
-rw-r--r-- | sys/compat/linux/linux_ipc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/linux/linux_ipc.c b/sys/compat/linux/linux_ipc.c index c3de05c1ddc..4c38ddac51c 100644 --- a/sys/compat/linux/linux_ipc.c +++ b/sys/compat/linux/linux_ipc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: linux_ipc.c,v 1.3 1996/10/17 19:15:48 niklas Exp $ */ +/* $OpenBSD: linux_ipc.c,v 1.4 1997/11/26 09:17:41 deraadt Exp $ */ /* $NetBSD: linux_ipc.c,v 1.10 1996/04/05 00:01:44 christos Exp $ */ /* @@ -675,7 +675,7 @@ linux_shmctl(p, uap, retval) SCARG(&bsa, buf) = bsp; if ((error = sys_shmctl(p, &bsa, retval))) return error; - if ((error = copyin((caddr_t) &bs, (caddr_t) bsp, sizeof bs))) + if ((error = copyin((caddr_t) bsp, (caddr_t) &bs, sizeof bs))) return error; bsd_to_linux_shmid_ds(&bs, &lseg); return copyout((caddr_t) &lseg, SCARG(uap, ptr), sizeof lseg); @@ -686,7 +686,7 @@ linux_shmctl(p, uap, retval) linux_to_bsd_shmid_ds(&lseg, &bs); sg = stackgap_init(p->p_emul); bsp = stackgap_alloc(&sg, sizeof (struct shmid_ds)); - if ((error = copyout((caddr_t) &bs, (caddr_t) bsp, sizeof bs))) + if ((error = copyout((caddr_t) bsp, (caddr_t) &bs, sizeof bs))) return error; SCARG(&bsa, shmid) = SCARG(uap, a1); SCARG(&bsa, cmd) = IPC_SET; |