diff options
author | Volker Lendecke <vl@samba.org> | 2010-08-24 21:40:25 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2010-08-24 22:45:41 +0200 |
commit | d3a0ff311e07b1080f33319d521217aa48b483e3 (patch) | |
tree | 0325d525b1d86e6cfc44f9d5238db4d7cd5cc4ff /source3/smbd/globals.h | |
parent | 2d81721a3fd9aa0cfdb2501cbcdd6eedc78c15c3 (diff) | |
download | samba-d3a0ff311e07b1080f33319d521217aa48b483e3.tar.gz samba-d3a0ff311e07b1080f33319d521217aa48b483e3.tar.bz2 samba-d3a0ff311e07b1080f33319d521217aa48b483e3.zip |
s3: Make char_flags and base_reverse const arrays
This moves those arrays from dynamic to static, shared memory, removing them
from globals.c.
I did it by dumping the result of init_tables() with dump_data(). Some massage
by an editor macro made it the initializer.
Diffstat (limited to 'source3/smbd/globals.h')
-rw-r--r-- | source3/smbd/globals.h | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/source3/smbd/globals.h b/source3/smbd/globals.h index 86e2c9b3f9..759fead1c3 100644 --- a/source3/smbd/globals.h +++ b/source3/smbd/globals.h @@ -54,15 +54,12 @@ extern const struct mangle_fns *mangle_fns; extern unsigned char *chartest; extern TDB_CONTEXT *tdb_mangled_cache; -/* these tables are used to provide fast tests for characters */ -extern unsigned char char_flags[256]; /* this determines how many characters are used from the original filename in the 8.3 mangled name. A larger value leads to a weaker hash and more collisions. The largest possible value is 6. */ extern unsigned mangle_prefix; -extern unsigned char base_reverse[256]; struct msg_state; extern struct msg_state *smbd_msg_state; |