summaryrefslogtreecommitdiff
path: root/source3/modules/vfs_cacheprime.c
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-04-05 14:53:08 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-04-06 01:47:43 +0200
commit6aa12fcb30c8f7246fd0215b1d808191c0d87668 (patch)
tree92eb805ea2ed03b1e42f6ce55ca26a65a92761fb /source3/modules/vfs_cacheprime.c
parent48166468fe3ca515dae3431bbe674809489f743c (diff)
downloadsamba-6aa12fcb30c8f7246fd0215b1d808191c0d87668.tar.gz
samba-6aa12fcb30c8f7246fd0215b1d808191c0d87668.tar.bz2
samba-6aa12fcb30c8f7246fd0215b1d808191c0d87668.zip
build: Remove SMB_OFF_T, replace with off_t
Now that we always require a 64 bit off_t, we no longer need SMB_OFF_T. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Apr 6 01:47:43 CEST 2012 on sn-devel-104
Diffstat (limited to 'source3/modules/vfs_cacheprime.c')
-rw-r--r--source3/modules/vfs_cacheprime.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/modules/vfs_cacheprime.c b/source3/modules/vfs_cacheprime.c
index bd11797f6b..65e63e2b39 100644
--- a/source3/modules/vfs_cacheprime.c
+++ b/source3/modules/vfs_cacheprime.c
@@ -49,13 +49,13 @@ static void * g_readbuf = NULL;
static bool prime_cache(
struct vfs_handle_struct * handle,
files_struct * fsp,
- SMB_OFF_T offset,
+ off_t offset,
size_t count)
{
- SMB_OFF_T * last;
+ off_t * last;
ssize_t nread;
- last = (SMB_OFF_T *)VFS_ADD_FSP_EXTENSION(handle, fsp, SMB_OFF_T, NULL);
+ last = (off_t *)VFS_ADD_FSP_EXTENSION(handle, fsp, off_t, NULL);
if (!last) {
return False;
}
@@ -134,7 +134,7 @@ static ssize_t cprime_sendfile(
int tofd,
files_struct * fromfsp,
const DATA_BLOB * header,
- SMB_OFF_T offset,
+ off_t offset,
size_t count)
{
if (g_readbuf && offset == 0) {
@@ -151,7 +151,7 @@ static ssize_t cprime_read(
void * data,
size_t count)
{
- SMB_OFF_T offset;
+ off_t offset;
offset = SMB_VFS_LSEEK(fsp, 0, SEEK_CUR);
if (offset >= 0 && g_readbuf) {
@@ -167,7 +167,7 @@ static ssize_t cprime_pread(
files_struct * fsp,
void * data,
size_t count,
- SMB_OFF_T offset)
+ off_t offset)
{
if (g_readbuf) {
prime_cache(handle, fsp, offset, count);