From: Ralph Boehme Date: Mon, 9 Jul 2018 15:11:57 +0000 (+0200) Subject: s3:lib/server_contexts: make server_event_ctx and server_msg_ctx static X-Git-Tag: tdb-1.3.17~1713 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d920a725ee19215190bbccaefd5b426bedc98860;p=thirdparty%2Fsamba.git 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 --- 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) {