From 489023e4810b148b91fb039a6dfa67556ae45cfd Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Mon, 27 Apr 2020 11:49:20 +0200 Subject: [PATCH] locking: Move SMB_OFF_T_BITS macro to its only user Signed-off-by: Volker Lendecke Reviewed-by: Ralph Boehme --- source3/include/includes.h | 2 -- source3/locking/posix.c | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) 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) { -- 2.47.3