X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;ds=sidebyside;f=src%2Funistd%2Fsetregid.c;h=665b55569d73247f5283112121fd9ee8db9c1b1c;hb=f7adc39e3793114e989f0a830af966230cd2c83d;hp=d25dab76ac96d7c61786f7ffb22f20f876124d8c;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/unistd/setregid.c b/src/unistd/setregid.c index d25dab76..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_setregid32, rgid, egid, 0, 0, 0, 0); - return syscall2(__NR_setregid32, rgid, egid); + return __rsyscall(SYS_setregid, rgid, egid, 0, 0, 0, 0); }