Change to vfs API. POSIX states fsync should return an int, not a void.
[tprouty/samba.git] / source / include / vfs.h
index 885e7d486b20dec4df8786861ee393011f699d55..fca9f7da84ac0861d853c4af97164d03aabefa99 100644 (file)
@@ -129,7 +129,7 @@ struct vfs_ops {
     ssize_t (*write)(int fd, char *data, size_t n);
     SMB_OFF_T (*lseek)(int filedes, SMB_OFF_T offset, int whence);
     int (*rename)(char *old, char *new);
-    void (*fsync)(int fd);
+    int (*fsync)(int fd);
     int (*stat)(char *fname, SMB_STRUCT_STAT *sbuf);
     int (*fstat)(int fd, SMB_STRUCT_STAT *sbuf);
     int (*lstat)(char *path, SMB_STRUCT_STAT *sbuf);