diff options
author | Christopher R. Hertel <crh@samba.org> | 2001-07-02 16:25:00 +0000 |
---|---|---|
committer | Christopher R. Hertel <crh@samba.org> | 2001-07-02 16:25:00 +0000 |
commit | c2977be3408645499915d728538ba2c65b97614f (patch) | |
tree | 28928cfd6f792c3fab3db515536eda849d875be7 | |
parent | 5d3f622375842961a79536d36ee6f6ad508b91f1 (diff) | |
download | samba-c2977be3408645499915d728538ba2c65b97614f.tar.gz samba-c2977be3408645499915d728538ba2c65b97614f.tar.xz samba-c2977be3408645499915d728538ba2c65b97614f.zip |
Very minor cleanup. I was looking for another problem and found some bits
of code that were unclear.
Chris -)-----
-rw-r--r-- | source/smbd/mangle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/smbd/mangle.c b/source/smbd/mangle.c index 1cc602dc051..61af1f7ded4 100644 --- a/source/smbd/mangle.c +++ b/source/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 |