X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Flinux%2Fswapon.c;h=2b40a30bfddbb54ebb4ba038f0b9a3cd00bb8739;hb=4f346b08b33c9265c36fe8a14f5f908b1a9f296a;hp=13d2876bd01ebe400f3faee269c7d0300e79db82;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl 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); }