From d1bedec87c435fb874991fda109911e44ea0bf4d Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 22 Nov 2002 06:15:43 +0000 Subject: Fixed some globals that escaped the recent globalcide. (This used to be commit 4580e16908fe06a2c2b6738683b7cb840467e61c) --- source3/python/py_common.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) (limited to 'source3/python/py_common.c') diff --git a/source3/python/py_common.c b/source3/python/py_common.c index 364271d57c..6e299470bf 100644 --- a/source3/python/py_common.c +++ b/source3/python/py_common.c @@ -45,9 +45,6 @@ static BOOL initialised; void py_samba_init(void) { - extern pstring global_myname; - char *p; - if (initialised) return; @@ -59,11 +56,7 @@ void py_samba_init(void) /* Misc other stuff */ load_interfaces(); - - fstrcpy(global_myname, myhostname()); - p = strchr(global_myname, '.'); - if (p) - *p = 0; + init_names(); initialised = True; } -- cgit