getservbyport_r: fix wrong result if getnameinfo fails with EAI_OVERFLOW
[musl] / src / linux / syncfs.c
index fe2b8a7..bc7d301 100644 (file)
@@ -2,7 +2,7 @@
 #include <unistd.h>
 #include "syscall.h"
 
-void syncfs(int fd)
+int syncfs(int fd)
 {
-       __syscall(SYS_syncfs, fd);
+       return syscall(SYS_syncfs, fd);
 }