s3:vfstest: reload_services() doesn't need a messaging_context
authorStefan Metzmacher <metze@samba.org>
Tue, 13 Dec 2011 13:16:21 +0000 (14:16 +0100)
committerStefan Metzmacher <metze@samba.org>
Tue, 13 Dec 2011 19:31:09 +0000 (20:31 +0100)
It's only used to get the global smbd_server_connection,
which is used in conn_snum_used() via lp_killunused().
But there we don't need it, as we don't have any tree connects
at startup time.

metze

source3/torture/vfstest.c

index 490dd2bd529ac31b2fcd38bfbf31c7ccbb580ec0..3ed49c021e5b5d9a1c562e0dfe14b9029de56ba4 100644 (file)
@@ -451,7 +451,7 @@ int main(int argc, char *argv[])
        lp_load_initial_only(get_dyn_CONFIGFILE());
 
        /* TODO: check output */
-       reload_services(smbd_messaging_context(), -1, False);
+       reload_services(NULL, -1, False);
 
        /* the following functions are part of the Samba debugging
           facilities.  See lib/debug.c */