global cleanup to use the new syscall interface
[musl] / src / mman / mprotect.c
index 11d5e23..1db2aea 100644 (file)
@@ -3,5 +3,5 @@
 
 int mprotect(void *addr, size_t len, int prot)
 {
-       return syscall3(__NR_mprotect, (long)addr, len, prot);
+       return syscall(SYS_mprotect, addr, len, prot);
 }