global cleanup to use the new syscall interface
[musl] / src / linux / swapon.c
index 13d2876..2b40a30 100644 (file)
@@ -1,8 +1,7 @@
 #include <sys/swap.h>
-#define SYSCALL_STANDALONE
 #include "syscall.h"
 
 int swapon(const char *path, int flags)
 {
-       return syscall2(__NR_swapon, (long)path, flags);
+       return syscall(SYS_swapon, path, flags);
 }