From: Volker Lendecke Date: Fri, 17 Nov 2017 10:37:30 +0000 (+0100) Subject: winbind: Remove winbind_event_context X-Git-Tag: samba-4.6.12~43 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=88a92ba2e77517359c68628019c9d67452b476be;p=thirdparty%2Fsamba.git winbind: Remove winbind_event_context BUG: https://bugzilla.samba.org/show_bug.cgi?id=13150 Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison (cherry picked from commit e1f12acc13a3cc004518ac3460c6000ea0b95115) --- diff --git a/source3/torture/torture.c b/source3/torture/torture.c index 015ea3765a0..bb4fefa64b2 100644 --- a/source3/torture/torture.c +++ b/source3/torture/torture.c @@ -11486,15 +11486,6 @@ static struct { { "qpathinfo-bufsize", run_qpathinfo_bufsize, 0 }, {NULL, NULL, 0}}; -/* - * dummy function to satisfy linker dependency - */ -struct tevent_context *winbind_event_context(void); -struct tevent_context *winbind_event_context(void) -{ - return NULL; -} - /**************************************************************************** run a specified test or "ALL" ****************************************************************************/ diff --git a/source3/winbindd/winbindd.c b/source3/winbindd/winbindd.c index a34c41421f6..6ff697a689f 100644 --- a/source3/winbindd/winbindd.c +++ b/source3/winbindd/winbindd.c @@ -59,25 +59,6 @@ static bool interactive = False; extern bool override_logfile; -struct tevent_context *winbind_event_context(void) -{ - static struct tevent_context *ev = NULL; - - if (ev != NULL) { - return ev; - } - - /* - * Note we MUST use the NULL context here, not the autofree context, - * to avoid side effects in forked children exiting. - */ - ev = samba_tevent_context_init(NULL); - if (ev == NULL) { - smb_panic("Could not init winbindd's messaging context.\n"); - } - return ev; -} - struct messaging_context *winbind_messaging_context(void) { static struct messaging_context *msg = NULL; diff --git a/source3/winbindd/winbindd_proto.h b/source3/winbindd/winbindd_proto.h index 46fb60038e6..4878b89c372 100644 --- a/source3/winbindd/winbindd_proto.h +++ b/source3/winbindd/winbindd_proto.h @@ -36,7 +36,6 @@ bool winbindd_setup_sig_hup_handler(const char *lfile); bool winbindd_use_idmap_cache(void); bool winbindd_use_cache(void); char *get_winbind_priv_pipe_dir(void); -struct tevent_context *winbind_event_context(void); /* The following definitions come from winbindd/winbindd_ads.c */