X-Git-Url: http://nsz.repo.hu/git/?p=musl;a=blobdiff_plain;f=src%2Funistd%2Fsetregid.c;h=665b55569d73247f5283112121fd9ee8db9c1b1c;hp=158753bea0e3d0a14d69db95f79c51c7c912c952;hb=c2cd25bff89c3581780e7eb267262cb8c4da0d38;hpb=2cdfb7ca26f46f151afbc23d5d94fc68597137f5 diff --git a/src/unistd/setregid.c b/src/unistd/setregid.c index 158753be..665b5556 100644 --- a/src/unistd/setregid.c +++ b/src/unistd/setregid.c @@ -4,6 +4,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 __rsyscall(SYS_setregid, rgid, egid, 0, 0, 0, 0); }