summaryrefslogtreecommitdiffstats
path: root/lib/libc
diff options
context:
space:
mode:
authordrahn <drahn@openbsd.org>2003-04-25 20:32:07 +0000
committerdrahn <drahn@openbsd.org>2003-04-25 20:32:07 +0000
commit5358dc5594ace3f90940fef1cfc48b9236c10dbb (patch)
tree733b2a2da5ab9f7aefb2ed3ae8fa6db2adabd273 /lib/libc
parentVery little tweak for consistency in space vs \t (diff)
downloadwireguard-openbsd-5358dc5594ace3f90940fef1cfc48b9236c10dbb.tar.xz
wireguard-openbsd-5358dc5594ace3f90940fef1cfc48b9236c10dbb.zip
backout mquery change, something broke when not combined with a different diff.
Diffstat (limited to 'lib/libc')
-rw-r--r--lib/libc/sys/mquery.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/lib/libc/sys/mquery.c b/lib/libc/sys/mquery.c
index 92856a2c70a..c58d466ca20 100644
--- a/lib/libc/sys/mquery.c
+++ b/lib/libc/sys/mquery.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: mquery.c,v 1.2 2003/04/25 18:30:18 drahn Exp $ */
+/* $OpenBSD: mquery.c,v 1.3 2003/04/25 20:32:07 drahn Exp $ */
/*
* Written by Artur Grabowski <art@openbsd.org> Public Domain
*/
@@ -10,9 +10,8 @@
/*
* This function provides 64-bit offset padding.
*/
-void *
-mquery(void *addr, size_t len, int prot, int flags, int fd, off_t offset)
+int
+mquery(int flags, void **addr, size_t size, int fd, off_t off)
{
- return((void *)(long)__syscall((quad_t)SYS_mquery, addr, len, prot,
- flags, fd, 0, offset));
+ return(__syscall((quad_t)SYS_mquery, flags, addr, size, fd, off));
}