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_commit.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_commit.c')
| -rw-r--r-- | source3/modules/vfs_commit.c | 14 | 
1 files changed, 7 insertions, 7 deletions
| diff --git a/source3/modules/vfs_commit.c b/source3/modules/vfs_commit.c index af1f98b20f..865250a5d8 100644 --- a/source3/modules/vfs_commit.c +++ b/source3/modules/vfs_commit.c @@ -68,11 +68,11 @@ enum eof_mode  struct commit_info  {          /* For chunk-based commits */ -        SMB_OFF_T dbytes;	/* Dirty (uncommitted) bytes */ -        SMB_OFF_T dthresh;	/* Dirty data threshold */ +        off_t dbytes;	/* Dirty (uncommitted) bytes */ +        off_t dthresh;	/* Dirty data threshold */          /* For commits on EOF */          enum eof_mode on_eof; -        SMB_OFF_T eof;		/* Expected file size */ +        off_t eof;		/* Expected file size */  };  static int commit_do( @@ -121,7 +121,7 @@ static int commit_all(  static int commit(          struct vfs_handle_struct *	handle,          files_struct *		        fsp, -	SMB_OFF_T			offset, +	off_t			offset,          ssize_t			        last_write)  {          struct commit_info *c; @@ -183,7 +183,7 @@ static int commit_open(  	int		    flags,  	mode_t		    mode)  { -        SMB_OFF_T dthresh; +        off_t dthresh;  	const char *eof_mode;          struct commit_info *c = NULL;          int fd; @@ -261,7 +261,7 @@ static ssize_t commit_pwrite(          files_struct *      fsp,          const void *        data,          size_t              count, -	SMB_OFF_T	    offset) +	off_t	    offset)  {          ssize_t ret; @@ -287,7 +287,7 @@ static int commit_close(  static int commit_ftruncate(          vfs_handle_struct * handle,          files_struct *      fsp, -        SMB_OFF_T           len) +        off_t           len)  {          int result; | 
