fix broken regerror (typo) and missing message
[musl] / src / unistd / setuid.c
index da6816d..602ecbb 100644 (file)
@@ -4,5 +4,5 @@
 
 int setuid(uid_t uid)
 {
-       return __rsyscall(__NR_setuid, uid, 0, 0, 0, 0, 0);
+       return __setxid(SYS_setuid, uid, 0, 0);
 }