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/lib/util_transfer_file.c | |
parent | 48166468fe3ca515dae3431bbe674809489f743c (diff) | |
download | samba-6aa12fcb30c8f7246fd0215b1d808191c0d87668.tar.gz |
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/lib/util_transfer_file.c')
-rw-r--r-- | source3/lib/util_transfer_file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/lib/util_transfer_file.c b/source3/lib/util_transfer_file.c index 8303b2bfe19..37a7d6e248c 100644 --- a/source3/lib/util_transfer_file.c +++ b/source3/lib/util_transfer_file.c @@ -104,8 +104,8 @@ static ssize_t sys_write_fn(void *file, const void *buf, size_t len) return sys_write(*fd, buf, len); } -SMB_OFF_T transfer_file(int infd, int outfd, SMB_OFF_T n) +off_t transfer_file(int infd, int outfd, off_t n) { - return (SMB_OFF_T)transfer_file_internal(&infd, &outfd, (size_t)n, + return (off_t)transfer_file_internal(&infd, &outfd, (size_t)n, sys_read_fn, sys_write_fn); } |