From dbe0fc5e59b924437dbdb799ad6485d0734477cf Mon Sep 17 00:00:00 2001 From: Ben Pfaff Date: Thu, 24 Mar 2005 06:37:53 +0000 Subject: [PATCH] Update mmap, munmap stubs to match new prototypes. --- src/lib/user/syscall.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/lib/user/syscall.c b/src/lib/user/syscall.c index aaeb109..b6120fd 100644 --- a/src/lib/user/syscall.c +++ b/src/lib/user/syscall.c @@ -141,16 +141,16 @@ close (int fd) syscall1 (SYS_close, fd); } -bool -mmap (int fd, void *addr, unsigned length) +mapid_t +mmap (int fd, void *addr) { - return syscall3 (SYS_mmap, fd, addr, length); + return syscall2 (SYS_mmap, fd, addr); } bool -munmap (void *addr, unsigned length) +munmap (mapid_t mapid) { - return syscall2 (SYS_munmap, addr, length); + return syscall1 (SYS_munmap, mapid); } bool -- 2.30.2