From b1941bc0b460459bcf7a51d44e73fa82417492d4 Mon Sep 17 00:00:00 2001 From: Dale Rahn Date: Fri, 25 Apr 2003 20:32:08 +0000 Subject: backout mquery change, something broke when not combined with a different diff. --- lib/libc/sys/mquery.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'lib') 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 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)); } -- cgit v1.2.3