diff options
author | Michael Adam <obnox@samba.org> | 2008-01-10 23:40:13 +0100 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2008-01-10 23:40:13 +0100 |
commit | e17642e849b28c323ba6bd7cc212455d727901db (patch) | |
tree | 1cdf80f661317171f1ae6c6da8911f1b77aff181 /source3 | |
parent | 0bfa8671598dd52cd7c97e8d05c940f92df1ffd1 (diff) | |
download | samba-e17642e849b28c323ba6bd7cc212455d727901db.tar.gz samba-e17642e849b28c323ba6bd7cc212455d727901db.tar.bz2 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')
-rw-r--r-- | source3/modules/vfs_cacheprime.c | 7 |
1 files changed, 3 insertions, 4 deletions
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); |