X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Flinux%2Fswapon.c;h=2b40a30bfddbb54ebb4ba038f0b9a3cd00bb8739;hp=13d2876bd01ebe400f3faee269c7d0300e79db82;hb=aa398f56fa398f2202b04e82c67f822f3233786f;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01 diff --git a/src/linux/swapon.c b/src/linux/swapon.c index 13d2876b..2b40a30b 100644 --- a/src/linux/swapon.c +++ b/src/linux/swapon.c @@ -1,8 +1,7 @@ #include -#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); }