summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_cacheprime.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-01-07 00:14:19 +0100
committerMichael Adam <obnox@samba.org>2008-01-07 00:14:19 +0100
commitca275e254985727c50b1b988c958a3743a7bc8ce (patch)
tree1c806c09e76402a576adaba05c9f623cb3767ba2 /source3/modules/vfs_cacheprime.c
parent05352cf2cb7f9710444d340f3f14ac6917fb0416 (diff)
downloadsamba-ca275e254985727c50b1b988c958a3743a7bc8ce.tar.gz
samba-ca275e254985727c50b1b988c958a3743a7bc8ce.tar.bz2
samba-ca275e254985727c50b1b988c958a3743a7bc8ce.zip
Remove unneeded parameter fd from SMB_VFS_PREAD().
Michael (This used to be commit 73e28806ce87d829ea7c38ed3440020845bb13bf)
Diffstat (limited to 'source3/modules/vfs_cacheprime.c')
-rw-r--r--source3/modules/vfs_cacheprime.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/modules/vfs_cacheprime.c b/source3/modules/vfs_cacheprime.c
index 9574087d9d..6eb74e66ed 100644
--- a/source3/modules/vfs_cacheprime.c
+++ b/source3/modules/vfs_cacheprime.c
@@ -160,16 +160,15 @@ static ssize_t cprime_read(
static ssize_t cprime_pread(
vfs_handle_struct * handle,
files_struct * fsp,
- int fd,
void * data,
size_t count,
SMB_OFF_T offset)
{
if (g_readbuf) {
- prime_cache(handle, fsp, fd, offset, count);
+ prime_cache(handle, fsp, fsp->fh->fd, offset, count);
}
- return SMB_VFS_NEXT_PREAD(handle, fsp, fd, data, count, offset);
+ return SMB_VFS_NEXT_PREAD(handle, fsp, data, count, offset);
}
static vfs_op_tuple cprime_ops [] =