summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRalph Boehme <slow@samba.org>2018-07-09 17:11:57 +0200
committerKarolin Seeger <kseeger@samba.org>2018-10-09 11:29:22 +0200
commita81799cf627e98152eca2dc2667ad16f475d85fb (patch)
tree2a14c843eb6ee3ae642bf26990926b69b903fd6e
parenta6f15a0dd69b1f01f4c29aed9631abe098830ad3 (diff)
downloadsamba-a81799cf627e98152eca2dc2667ad16f475d85fb.tar.gz
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 <slow@samba.org> Reviewed-by: Christof Schmitt <cs@samba.org> (cherry picked from commit d920a725ee19215190bbccaefd5b426bedc98860)
-rw-r--r--source3/lib/server_contexts.c4
1 files 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)
{