diff options
author | Rich Felker <dalias@aerifal.cx> | 2015-07-09 17:07:35 +0000 |
---|---|---|
committer | Rich Felker <dalias@aerifal.cx> | 2015-07-09 17:07:35 +0000 |
commit | 11894f6d3a80be950a490dc7dfab349f057a545f (patch) | |
tree | a46c086dd63f5976690a8915881d6e3967c2c190 /src/linux | |
parent | e8cbe0bad4284906230a53af4c91ad2b9713d03b (diff) | |
download | musl-11894f6d3a80be950a490dc7dfab349f057a545f.tar.gz musl-11894f6d3a80be950a490dc7dfab349f057a545f.tar.bz2 musl-11894f6d3a80be950a490dc7dfab349f057a545f.tar.xz musl-11894f6d3a80be950a490dc7dfab349f057a545f.zip |
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.
Diffstat (limited to 'src/linux')
-rw-r--r-- | src/linux/syncfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
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 <unistd.h> #include "syscall.h" -void syncfs(int fd) +int syncfs(int fd) { - __syscall(SYS_syncfs, fd); + return syscall(SYS_syncfs, fd); } |