]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
locking: Move SMB_OFF_T_BITS macro to its only user
authorVolker Lendecke <vl@samba.org>
Mon, 27 Apr 2020 09:49:20 +0000 (11:49 +0200)
committerRalph Boehme <slow@samba.org>
Tue, 5 May 2020 11:48:38 +0000 (11:48 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ralph Boehme <slow@samba.org>
source3/include/includes.h
source3/locking/posix.c

index 2dafc65f41a8904ca8dda19d5332d94e35181798..6389e7be3c029d7d5340e6e2fde581b8c950936b 100644 (file)
@@ -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.
index 32f8317776e1aad3654e6fd09b92c2666f39564c..e2eda225590b43863dcf376677e93e0a0b900b5f 100644 (file)
@@ -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)
 {