summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source3/lib/wins_srv.c4
-rw-r--r--source3/libsmb/namequery.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/source3/lib/wins_srv.c b/source3/lib/wins_srv.c
index 27b5adf6b5..9fd2760612 100644
--- a/source3/lib/wins_srv.c
+++ b/source3/lib/wins_srv.c
@@ -71,8 +71,8 @@ static struct wins_dead {
struct wins_dead *next, *prev;
} *dead_servers;
-extern BOOL global_in_nmbd;
-
+/* nmbd sets this */
+BOOL global_in_nmbd = False;
/* an internal convenience structure for an IP with a short string tag
attached */
diff --git a/source3/libsmb/namequery.c b/source3/libsmb/namequery.c
index 2c6fb2fd71..75e2458964 100644
--- a/source3/libsmb/namequery.c
+++ b/source3/libsmb/namequery.c
@@ -22,7 +22,7 @@
#include "includes.h"
/* nmbd.c sets this to True. */
-BOOL global_in_nmbd = False;
+extern BOOL global_in_nmbd;
/****************************************************************************
generate a random trn_id