global cleanup to use the new syscall interface
[musl] / src / stat / stat.c
index 9847552..c5491eb 100644 (file)
@@ -4,7 +4,7 @@
 
 int stat(const char *path, struct stat *buf)
 {
-       return syscall2(__NR_stat, (long)path, (long)buf);
+       return syscall(SYS_stat, path, buf);
 }
 
 LFS64(stat);