global cleanup to use the new syscall interface
[musl] / src / misc / getpriority.c
index 2fb26b2..5c0b168 100644 (file)
@@ -3,7 +3,7 @@
 
 int getpriority(int which, id_t who)
 {
 
 int getpriority(int which, id_t who)
 {
-       int ret = syscall2(__NR_getpriority, which, who);
+       int ret = syscall(SYS_getpriority, which, who);
        if (ret < 0) return ret;
        return 20-ret;
 }
        if (ret < 0) return ret;
        return 20-ret;
 }