From efbb6fb3f7506b48dbb406e3b9a2fc9e865807c6 Mon Sep 17 00:00:00 2001 From: Yabin Cui Date: Wed, 3 Dec 2014 11:11:50 -0800 Subject: [PATCH] change argument type in madvise Make madvise prototype the same as linux man page. Bug: 18539500 Change-Id: If3fd0e1d9539b9e10531ab9087bc4040e32b6e9b --- libc/SYSCALLS.TXT | 2 +- libc/include/sys/mman.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libc/SYSCALLS.TXT b/libc/SYSCALLS.TXT index 39ff37de0..d9ede2f8e 100644 --- a/libc/SYSCALLS.TXT +++ b/libc/SYSCALLS.TXT @@ -101,7 +101,7 @@ int munmap(void*, size_t) all void* mremap(void*, size_t, size_t, unsigned long) all int msync(const void*, size_t, int) all int mprotect(const void*, size_t, int) all -int madvise(const void*, size_t, int) all +int madvise(void*, size_t, int) all int mlock(const void* addr, size_t len) all int munlock(const void* addr, size_t len) all int mlockall(int flags) all diff --git a/libc/include/sys/mman.h b/libc/include/sys/mman.h index 5a8c9858f..09bf0d914 100644 --- a/libc/include/sys/mman.h +++ b/libc/include/sys/mman.h @@ -54,7 +54,7 @@ extern int mlockall(int); extern int munlockall(void); extern int mlock(const void*, size_t); extern int munlock(const void*, size_t); -extern int madvise(const void*, size_t, int); +extern int madvise(void*, size_t, int); extern int mlock(const void*, size_t); extern int munlock(const void*, size_t);