omit errno update path for syscalls that cannot fail
[musl] / src / unistd / getpid.c
index 31cbe1c..a6d4e6d 100644 (file)
@@ -3,5 +3,5 @@
 
 pid_t getpid(void)
 {
-       return syscall0(__NR_getpid);
+       return __syscall(SYS_getpid);
 }