winbind: Remove winbind_messaging_context
authorVolker Lendecke <vl@samba.org>
Fri, 17 Nov 2017 10:47:37 +0000 (11:47 +0100)
committerJeremy Allison <jra@samba.org>
Sat, 18 Nov 2017 03:07:23 +0000 (04:07 +0100)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13150

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Sat Nov 18 04:07:24 CET 2017 on sn-devel-144

source3/winbindd/winbindd.c
source3/winbindd/winbindd_proto.h

index 679faefe2fd8eb35b9e905b141b51e32b8a2c85c..ceb131e9b329e0defeb2d258604121932a47db7c 100644 (file)
@@ -60,25 +60,6 @@ static bool interactive = False;
 
 extern bool override_logfile;
 
-struct messaging_context *winbind_messaging_context(void)
-{
-       static struct messaging_context *msg = NULL;
-
-       if (msg != NULL) {
-               return msg;
-       }
-
-       /*
-        * Note we MUST use the NULL context here, not the autofree context,
-        * to avoid side effects in forked children exiting.
-        */
-       msg = messaging_init(NULL, server_event_context());
-       if (msg == NULL) {
-               smb_panic("Could not init winbindd's messaging context.\n");
-       }
-       return msg;
-}
-
 struct imessaging_context *winbind_imessaging_context(void)
 {
        static struct imessaging_context *msg = NULL;
index ccf39e575087f08fbbee6386010926f47324539c..83136996dd2049c4a0520d8b2f399135e6ff6cce 100644 (file)
@@ -24,7 +24,6 @@
 #define _WINBINDD_PROTO_H_
 
 /* The following definitions come from winbindd/winbindd.c  */
-struct messaging_context *winbind_messaging_context(void);
 struct imessaging_context *winbind_imessaging_context(void);
 void request_error(struct winbindd_cli_state *state);
 void request_ok(struct winbindd_cli_state *state);