summaryrefslogtreecommitdiffstats
path: root/source/param/loadparm.c
diff options
context:
space:
mode:
Diffstat (limited to 'source/param/loadparm.c')
-rw-r--r--source/param/loadparm.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/source/param/loadparm.c b/source/param/loadparm.c
index 41bf490acd0..7b5291b9e91 100644
--- a/source/param/loadparm.c
+++ b/source/param/loadparm.c
@@ -3760,3 +3760,13 @@ void lp_set_logfile(const char *name)
pstrcpy(Globals.szLogFile, name);
pstrcpy(debugf, name);
}
+
+/*******************************************************************
+ Return the NetBIOS called name.
+********************************************************************/
+
+const char *get_called_name(void)
+{
+ extern fstring local_machine;
+ return (*local_machine) ? local_machine : global_myname;
+}