diff options
author | Volker Lendecke <vl@samba.org> | 2017-11-17 11:47:37 +0100 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2017-11-18 04:07:23 +0100 |
commit | 050ca45dc7fc5bbab6e1c60b919ac0b1e9661e27 (patch) | |
tree | 0c3e59cc12776a9fb03b8bdc7015309088a44bd2 /source3 | |
parent | d8a01d09c13728f36107f6eb94ecb7653706a4db (diff) | |
download | samba-050ca45dc7fc5bbab6e1c60b919ac0b1e9661e27.tar.gz |
winbind: Remove winbind_messaging_context
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
Diffstat (limited to 'source3')
-rw-r--r-- | source3/winbindd/winbindd.c | 19 | ||||
-rw-r--r-- | source3/winbindd/winbindd_proto.h | 1 |
2 files changed, 0 insertions, 20 deletions
diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c index 679faefe2fd..ceb131e9b32 100644 --- a/source3/winbindd/winbindd.c +++ b/source3/winbindd/winbindd.c @@ -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; diff --git a/source3/winbindd/winbindd_proto.h b/source3/winbindd/winbindd_proto.h index ccf39e57508..83136996dd2 100644 --- a/source3/winbindd/winbindd_proto.h +++ b/source3/winbindd/winbindd_proto.h @@ -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); |