global cleanup to use the new syscall interface
[musl] / src / stat / fstat.c
index 88ac6f3..10228f7 100644 (file)
@@ -4,7 +4,7 @@
 
 int fstat(int fd, struct stat *buf)
 {
-       return syscall2(__NR_fstat, fd, (long)buf);
+       return syscall(SYS_fstat, fd, buf);
 }
 
 LFS64(fstat);