From e17642e849b28c323ba6bd7cc212455d727901db Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Thu, 10 Jan 2008 23:40:13 +0100 Subject: Fix the build of the cacheprime VFS module after API changes. Sorry, that had escaped my attention. Michael (This used to be commit 88102b5b7c4eaad5445e9cb96e547dd918abc0c2) --- source3/modules/vfs_cacheprime.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'source3') diff --git a/source3/modules/vfs_cacheprime.c b/source3/modules/vfs_cacheprime.c index 4ac78437c3..5675108f1e 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); -- cgit