summaryrefslogtreecommitdiff
path: root/source3/torture
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2010-05-26 10:48:15 +1000
committerStefan Metzmacher <metze@samba.org>2010-05-28 18:08:27 +0200
commit59422efca9734f7e4248f9c7df8b6b823f17999b (patch)
tree1a1c098d27af02eee8f7d6e7e7496fc447513852 /source3/torture
parent6f279de0e672996ff1c142202581e6471ed6e859 (diff)
downloadsamba-59422efca9734f7e4248f9c7df8b6b823f17999b.tar.gz
samba-59422efca9734f7e4248f9c7df8b6b823f17999b.tar.bz2
samba-59422efca9734f7e4248f9c7df8b6b823f17999b.zip
s3:smbd move messaging_context and memcache into globals.c
This helps vfstest, which previously had duplicate copies of these functions. Signed-off-by: Stefan Metzmacher <metze@samba.org>
Diffstat (limited to 'source3/torture')
-rw-r--r--source3/torture/vfstest.c24
1 files changed, 0 insertions, 24 deletions
diff --git a/source3/torture/vfstest.c b/source3/torture/vfstest.c
index c885163729..ea18bb395e 100644
--- a/source3/torture/vfstest.c
+++ b/source3/torture/vfstest.c
@@ -432,30 +432,6 @@ struct event_context *smbd_event_context(void)
return ctx;
}
-struct messaging_context *smbd_messaging_context(void)
-{
- static struct messaging_context *ctx;
-
- if (!ctx && !(ctx = messaging_init(NULL, procid_self(),
- smbd_event_context()))) {
- smb_panic("Could not init smbd messaging context\n");
- }
- return ctx;
-}
-
-struct memcache *smbd_memcache(void)
-{
- static struct memcache *cache;
-
- if (!cache
- && !(cache = memcache_init(NULL,
- lp_max_stat_cache_size()*1024))) {
-
- smb_panic("Could not init smbd memcache");
- }
- return cache;
-}
-
/* Main function */
int main(int argc, char *argv[])