summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-01-10 15:49:35 +0100
committerMichael Adam <obnox@samba.org>2008-01-10 15:49:35 +0100
commite9a3a62e7448bef72d9c17c90ff2b404082f067c (patch)
tree882a2c92c86ea112ece2611bd2b33d7b9662a4f2 /source3/smbd
parent1d66f4d58b5fdd9c4e0c022cd2724e05d144510b (diff)
downloadsamba-e9a3a62e7448bef72d9c17c90ff2b404082f067c.tar.gz
samba-e9a3a62e7448bef72d9c17c90ff2b404082f067c.tar.bz2
samba-e9a3a62e7448bef72d9c17c90ff2b404082f067c.zip
Remove redundant parameter fd from SMB_VFS_WRITE().
Michael (This used to be commit c8ae7d095a2a6a7eac920a68ca7244e3a423e1b1)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/vfs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/smbd/vfs.c b/source3/smbd/vfs.c
index 53a0001515..1e71da742c 100644
--- a/source3/smbd/vfs.c
+++ b/source3/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)