summaryrefslogtreecommitdiffstats
path: root/source3/modules/vfs_cacheprime.c
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2008-01-10 23:40:13 +0100
committerMichael Adam <obnox@samba.org>2008-01-10 23:40:13 +0100
commite17642e849b28c323ba6bd7cc212455d727901db (patch)
tree1cdf80f661317171f1ae6c6da8911f1b77aff181 /source3/modules/vfs_cacheprime.c
parent0bfa8671598dd52cd7c97e8d05c940f92df1ffd1 (diff)
downloadsamba-e17642e849b28c323ba6bd7cc212455d727901db.tar.gz
samba-e17642e849b28c323ba6bd7cc212455d727901db.tar.xz
samba-e17642e849b28c323ba6bd7cc212455d727901db.zip
Fix the build of the cacheprime VFS module after API changes.
Sorry, that had escaped my attention. Michael (This used to be commit 88102b5b7c4eaad5445e9cb96e547dd918abc0c2)
Diffstat (limited to 'source3/modules/vfs_cacheprime.c')
-rw-r--r--source3/modules/vfs_cacheprime.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/source3/modules/vfs_cacheprime.c b/source3/modules/vfs_cacheprime.c
index 4ac78437c30..5675108f1eb 100644
--- a/source3/modules/vfs_cacheprime.c
+++ b/source3/modules/vfs_cacheprime.c
@@ -142,16 +142,15 @@ static ssize_t cprime_sendfile(
static ssize_t cprime_read(
vfs_handle_struct * handle,
files_struct * fsp,
- int fd,
void * data,
size_t count)
{
SMB_OFF_T offset;
- offset = SMB_VFS_LSEEK(fsp, fd, 0, SEEK_CUR);
+ offset = SMB_VFS_LSEEK(fsp, 0, SEEK_CUR);
if (offset >= 0 && g_readbuf) {
- prime_cache(handle, fsp, fd, offset, count);
- SMB_VFS_LSEEK(fsp, fd, offset, SEEK_SET);
+ prime_cache(handle, fsp, fsp->fh->fd, offset, count);
+ SMB_VFS_LSEEK(fsp, offset, SEEK_SET);
}
return SMB_VFS_NEXT_READ(handle, fsp, data, count);