Very minor cleanup. I was looking for another problem and found some bits
authorChristopher R. Hertel <crh@samba.org>
Mon, 2 Jul 2001 16:25:00 +0000 (16:25 +0000)
committerChristopher R. Hertel <crh@samba.org>
Mon, 2 Jul 2001 16:25:00 +0000 (16:25 +0000)
of code that were unclear.

Chris -)-----
(This used to be commit c2977be3408645499915d728538ba2c65b97614f)

source3/smbd/mangle.c

index 1cc602dc0514ad189ed69c5271f77e96c0a2830b..61af1f7ded40be07a992b182bb3e2dbb4ff072c5 100644 (file)
@@ -113,7 +113,7 @@ extern BOOL case_mangle;    /* If true, all chars in 8.3 should be same case. */
 char magic_char = '~';
 
 static char basechars[] = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_-!@#$%";
-#define MANGLE_BASE       (sizeof(basechars)/sizeof(char)-1)
+#define MANGLE_BASE       ( (sizeof(basechars)/sizeof(char)) - 1 )
 
 static unsigned char chartest[256]  = { 0 };
 static BOOL          ct_initialized = False;
@@ -124,7 +124,7 @@ static BOOL          ct_initialized = False;
 #define isbasechar(C) ( (chartest[ ((C) & 0xff) ]) & BASECHAR_MASK )
 #define isillegal(C) ( (chartest[ ((C) & 0xff) ]) & ILLEGAL_MASK )
 
-static ubi_cacheRoot mangled_cache[1] =  { { { 0, 0, 0, 0 }, 0, 0, 0, 0, 0, 0 } };
+static ubi_cacheRoot mangled_cache[1] = {{ { 0, 0, 0, 0 }, 0, 0, 0, 0, 0, 0 }};
 static BOOL          mc_initialized   = False;
 #define MANGLED_CACHE_MAX_ENTRIES 0
 #define MANGLED_CACHE_MAX_MEMORY  16384