From 6aa12fcb30c8f7246fd0215b1d808191c0d87668 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Thu, 5 Apr 2012 14:53:08 +1000 Subject: 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 Autobuild-Date: Fri Apr 6 01:47:43 CEST 2012 on sn-devel-104 --- source3/libsmb/libsmb_file.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/libsmb/libsmb_file.c') diff --git a/source3/libsmb/libsmb_file.c b/source3/libsmb/libsmb_file.c index b5932c8164a..c09011bb0ae 100644 --- a/source3/libsmb/libsmb_file.c +++ b/source3/libsmb/libsmb_file.c @@ -489,7 +489,7 @@ SMBC_getatr(SMBCCTX * context, SMBCSRV *srv, const char *path, uint16 *mode, - SMB_OFF_T *size, + off_t *size, struct timespec *create_time_ts, struct timespec *access_time_ts, struct timespec *write_time_ts, @@ -679,7 +679,7 @@ SMBC_lseek_ctx(SMBCCTX *context, off_t offset, int whence) { - SMB_OFF_T size; + off_t size; char *server = NULL, *share = NULL, *user = NULL, *password = NULL; char *path = NULL; char *targetpath = NULL; @@ -745,7 +745,7 @@ SMBC_lseek_ctx(SMBCCTX *context, targetcli, file->cli_fd, NULL, &size, NULL, NULL, NULL, NULL, NULL))) { - SMB_OFF_T b_size = size; + off_t b_size = size; if (!NT_STATUS_IS_OK(cli_getattrE(targetcli, file->cli_fd, NULL, &b_size, NULL, NULL, NULL))) { errno = EINVAL; @@ -775,7 +775,7 @@ SMBC_ftruncate_ctx(SMBCCTX *context, SMBCFILE *file, off_t length) { - SMB_OFF_T size = length; + off_t size = length; char *server = NULL; char *share = NULL; char *user = NULL; -- cgit