From 56b2a0c1140e27eef879de0bb7deb570652d8334 Mon Sep 17 00:00:00 2001 From: "Christopher R. Hertel" Date: Mon, 2 Jul 2001 16:25:00 +0000 Subject: Very minor cleanup. I was looking for another problem and found some bits of code that were unclear. Chris -)----- (This used to be commit c2977be3408645499915d728538ba2c65b97614f) --- source3/smbd/mangle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source3/smbd') diff --git a/source3/smbd/mangle.c b/source3/smbd/mangle.c index 1cc602dc05..61af1f7ded 100644 --- a/source3/smbd/mangle.c +++ b/source3/smbd/mangle.c @@ -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 -- cgit