From 11894f6d3a80be950a490dc7dfab349f057a545f Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Thu, 9 Jul 2015 17:07:35 +0000 Subject: fix incorrect void return type for syncfs function being nonstandard, the closest thing to a specification for this function is its man page, which documents it as returning int. it can fail with EBADF if the file descriptor passed is invalid. --- src/linux/syncfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/linux') diff --git a/src/linux/syncfs.c b/src/linux/syncfs.c index fe2b8a70..bc7d301e 100644 --- a/src/linux/syncfs.c +++ b/src/linux/syncfs.c @@ -2,7 +2,7 @@ #include #include "syscall.h" -void syncfs(int fd) +int syncfs(int fd) { - __syscall(SYS_syncfs, fd); + return syscall(SYS_syncfs, fd); } -- cgit v1.2.1