diff options
| author | 1997-11-26 09:17:41 +0000 | |
|---|---|---|
| committer | 1997-11-26 09:17:41 +0000 | |
| commit | b1e3899d800e7f0bea70047dff67d63f3bbe36f6 (patch) | |
| tree | cb6c91d5d5efd86a87c948414d529691d691dd3f /sys/compat/linux/linux_ipc.c | |
| parent | If using async connect(), after select for writeable, if getpeername() (diff) | |
| download | wireguard-openbsd-b1e3899d800e7f0bea70047dff67d63f3bbe36f6.tar.xz wireguard-openbsd-b1e3899d800e7f0bea70047dff67d63f3bbe36f6.zip | |
fix shmctl IPC_STAT
Diffstat (limited to 'sys/compat/linux/linux_ipc.c')
| -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; |
