From 59422efca9734f7e4248f9c7df8b6b823f17999b Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Wed, 26 May 2010 10:48:15 +1000 Subject: 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 --- source3/torture/vfstest.c | 24 ------------------------ 1 file changed, 24 deletions(-) (limited to 'source3/torture') 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[]) -- cgit