global cleanup to use the new syscall interface
[musl] / src / mman / madvise.c
index f03647c..f80926b 100644 (file)
@@ -4,7 +4,7 @@
 
 int __madvise(void *addr, size_t len, int advice)
 {
-       return syscall3(__NR_madvise, (long)addr, len, advice);
+       return syscall(SYS_madvise, addr, len, advice);
 }
 
 weak_alias(__madvise, madvise);