From: Volker Lendecke Date: Mon, 27 Apr 2020 09:49:20 +0000 (+0200) Subject: locking: Move SMB_OFF_T_BITS macro to its only user X-Git-Tag: ldb-2.2.0~755 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=489023e4810b148b91fb039a6dfa67556ae45cfd;p=thirdparty%2Fsamba.git locking: Move SMB_OFF_T_BITS macro to its only user Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- diff --git a/source3/include/includes.h b/source3/include/includes.h index 2dafc65f41a..6389e7be3c0 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -179,8 +179,6 @@ typedef sig_atomic_t volatile SIG_ATOMIC_T; /* this should really be a 64 bit type if possible */ typedef uint64_t br_off; -#define SMB_OFF_T_BITS (sizeof(off_t)*8) - /* * Set the define that tells us if we can do 64 bit * NT SMB calls. diff --git a/source3/locking/posix.c b/source3/locking/posix.c index 32f8317776e..e2eda225590 100644 --- a/source3/locking/posix.c +++ b/source3/locking/posix.c @@ -84,6 +84,8 @@ static const char *posix_lock_type_name(int lock_type) False if not. ****************************************************************************/ +#define SMB_OFF_T_BITS (sizeof(off_t)*8) + static bool posix_lock_in_range(off_t *offset_out, off_t *count_out, uint64_t u_offset, uint64_t u_count) {