diff options
author | Michael Adam <obnox@samba.org> | 2008-01-10 15:49:35 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-01-10 15:49:35 +0100 |
commit | c8ae7d095a2a6a7eac920a68ca7244e3a423e1b1 (patch) | |
tree | 235bd7300e7d489ac87dccff33a2b34fdc5f3d71 /source/smbd/vfs.c | |
parent | a8fc2ddad8d5f7c6c00cb36c74a32a02d69d1d04 (diff) | |
download | samba-c8ae7d095a2a6a7eac920a68ca7244e3a423e1b1.tar.gz samba-c8ae7d095a2a6a7eac920a68ca7244e3a423e1b1.tar.xz samba-c8ae7d095a2a6a7eac920a68ca7244e3a423e1b1.zip |
Remove redundant parameter fd from SMB_VFS_WRITE().
Michael
Diffstat (limited to 'source/smbd/vfs.c')
-rw-r--r-- | source/smbd/vfs.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/vfs.c b/source/smbd/vfs.c index 53a0001515d..1e71da742c2 100644 --- a/source/smbd/vfs.c +++ b/source/smbd/vfs.c @@ -451,7 +451,7 @@ ssize_t vfs_write_data(struct smb_request *req, } while (total < N) { - ret = SMB_VFS_WRITE(fsp,fsp->fh->fd,buffer + total,N - total); + ret = SMB_VFS_WRITE(fsp, buffer + total, N - total); if (ret == -1) return -1; @@ -673,7 +673,7 @@ static ssize_t vfs_write_fn(void *file, const void *buf, size_t len) { struct files_struct *fsp = (struct files_struct *)file; - return SMB_VFS_WRITE(fsp, fsp->fh->fd, buf, len); + return SMB_VFS_WRITE(fsp, buf, len); } SMB_OFF_T vfs_transfer_file(files_struct *in, files_struct *out, SMB_OFF_T n) |