From d3a0ff311e07b1080f33319d521217aa48b483e3 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 24 Aug 2010 21:40:25 +0200 Subject: 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. --- source3/smbd/globals.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'source3/smbd/globals.c') 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); -- cgit