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.c | |
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.c')
-rw-r--r-- | source3/smbd/globals.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/source3/smbd/globals.c b/source3/smbd/globals.c index 98e4d51b08..1c7afb948e 100644 --- a/source3/smbd/globals.c +++ b/source3/smbd/globals.c @@ -57,15 +57,12 @@ const struct mangle_fns *mangle_fns = NULL; unsigned char *chartest = NULL; TDB_CONTEXT *tdb_mangled_cache = NULL; -/* these tables are used to provide fast tests for characters */ -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. */ unsigned mangle_prefix = 0; -unsigned char base_reverse[256]; struct msg_state *smbd_msg_state = NULL; @@ -146,9 +143,6 @@ struct memcache *smbd_memcache(void) void smbd_init_globals(void) { - ZERO_STRUCT(char_flags); - ZERO_STRUCT(base_reverse); - ZERO_STRUCT(conn_ctx_stack); ZERO_STRUCT(sec_ctx_stack); |