global cleanup to use the new syscall interface
[musl] / src / unistd / setregid.c
index 158753b..ff2607d 100644 (file)
@@ -5,5 +5,5 @@
 int setregid(gid_t rgid, gid_t egid)
 {
        if (libc.rsyscall) return libc.rsyscall(__NR_setregid, rgid, egid, 0, 0, 0, 0);
-       return syscall2(__NR_setregid, rgid, egid);
+       return syscall(SYS_setregid, rgid, egid);
 }