Remove redundant parameter fd from SMB_VFS_FSYNC().
[tprouty/samba.git] / source / modules / vfs_default.c
index 41162e67ca9a1f80fc3728b67d78ec411324768d..8aa17096474011a89e791ce8fe95beb9bff9fe6d 100644 (file)
@@ -467,13 +467,13 @@ static int vfswrap_rename(vfs_handle_struct *handle,  const char *oldname, const
        return result;
 }
 
-static int vfswrap_fsync(vfs_handle_struct *handle, files_struct *fsp, int fd)
+static int vfswrap_fsync(vfs_handle_struct *handle, files_struct *fsp)
 {
 #ifdef HAVE_FSYNC
        int result;
 
        START_PROFILE(syscall_fsync);
-       result = fsync(fd);
+       result = fsync(fsp->fh->fd);
        END_PROFILE(syscall_fsync);
        return result;
 #else