diff options
author | Andrew Bartlett <abartlet@samba.org> | 2012-04-05 14:53:08 +1000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2012-04-06 01:47:43 +0200 |
commit | 6aa12fcb30c8f7246fd0215b1d808191c0d87668 (patch) | |
tree | 92eb805ea2ed03b1e42f6ce55ca26a65a92761fb /source3/modules/vfs_prealloc.c | |
parent | 48166468fe3ca515dae3431bbe674809489f743c (diff) | |
download | samba-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_prealloc.c')
-rw-r--r-- | source3/modules/vfs_prealloc.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/modules/vfs_prealloc.c b/source3/modules/vfs_prealloc.c index 15be7d121b..f67cefbe2f 100644 --- a/source3/modules/vfs_prealloc.c +++ b/source3/modules/vfs_prealloc.c @@ -56,7 +56,7 @@ #define MODULE "prealloc" static int module_debug; -static int preallocate_space(int fd, SMB_OFF_T size) +static int preallocate_space(int fd, off_t size) { int err; #ifndef HAVE_GPFS @@ -170,9 +170,9 @@ static int prealloc_open(vfs_handle_struct* handle, * truncate calls specially. */ if ((flags & O_CREAT) || (flags & O_TRUNC)) { - SMB_OFF_T * psize; + off_t * psize; - psize = VFS_ADD_FSP_EXTENSION(handle, fsp, SMB_OFF_T, NULL); + psize = VFS_ADD_FSP_EXTENSION(handle, fsp, off_t, NULL); if (psize == NULL || *psize == -1) { return fd; } @@ -201,9 +201,9 @@ normal_open: static int prealloc_ftruncate(vfs_handle_struct * handle, files_struct * fsp, - SMB_OFF_T offset) + off_t offset) { - SMB_OFF_T *psize; + off_t *psize; int ret = SMB_VFS_NEXT_FTRUNCATE(handle, fsp, offset); /* Maintain the allocated space even in the face of truncates. */ |