From 583652aa1a7a44671cd5a72eb47429649cd37a44 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Fri, 29 Nov 2002 01:13:05 +0000 Subject: Another global_myname() fix from HEAD. (This used to be commit 880083e2e614d88675f98a46cfe7acdaeb167db3) --- source3/python/py_smb.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source3/python') diff --git a/source3/python/py_smb.c b/source3/python/py_smb.c index 41b8237a8a..efb7d0a5fd 100644 --- a/source3/python/py_smb.c +++ b/source3/python/py_smb.c @@ -61,7 +61,6 @@ static PyObject *py_smb_session_request(PyObject *self, PyObject *args, static char *kwlist[] = { "called", "calling", NULL }; char *calling_name = NULL, *called_name; struct nmb_name calling, called; - extern pstring global_myname; BOOL result; if (!PyArg_ParseTupleAndKeywords(args, kw, "s|s", kwlist, &called_name, @@ -69,7 +68,7 @@ static PyObject *py_smb_session_request(PyObject *self, PyObject *args, return NULL; if (!calling_name) - calling_name = global_myname; + calling_name = global_myname(); make_nmb_name(&calling, calling_name, 0x00); make_nmb_name(&called, called_name, 0x20); -- cgit