From a81799cf627e98152eca2dc2667ad16f475d85fb Mon Sep 17 00:00:00 2001 From: Ralph Boehme Date: Mon, 9 Jul 2018 17:11:57 +0200 Subject: [PATCH] s3:lib/server_contexts: make server_event_ctx and server_msg_ctx static server_event_ctx and server_msg_ctx static shouldn't be accessible from outside this compilation unit. BUG: https://bugzilla.samba.org/show_bug.cgi?id=13465 Signed-off-by: Ralph Boehme Reviewed-by: Christof Schmitt (cherry picked from commit d920a725ee19215190bbccaefd5b426bedc98860) --- source3/lib/server_contexts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/lib/server_contexts.c b/source3/lib/server_contexts.c index 50072e680b6..b21cf0a4c81 100644 --- a/source3/lib/server_contexts.c +++ b/source3/lib/server_contexts.c @@ -21,7 +21,7 @@ #include "includes.h" #include "messages.h" -struct tevent_context *server_event_ctx = NULL; +static struct tevent_context *server_event_ctx = NULL; struct tevent_context *server_event_context(void) { @@ -44,7 +44,7 @@ void server_event_context_free(void) TALLOC_FREE(server_event_ctx); } -struct messaging_context *server_msg_ctx = NULL; +static struct messaging_context *server_msg_ctx = NULL; struct messaging_context *server_messaging_context(void) { -- 2.47.2