diff options
author | Andrew Bartlett <abartlet@samba.org> | 2002-11-13 06:38:33 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2002-11-13 06:38:33 +0000 |
commit | 2b41c63b61687c2c7e1503c902d54bdf31b79bf3 (patch) | |
tree | b752a50a5a6993478def3e5d760722313d8eeffa /source3/libsmb | |
parent | 6de53c67564f298aaf50426de3e9199a04c4885e (diff) | |
download | samba-2b41c63b61687c2c7e1503c902d54bdf31b79bf3.tar.gz samba-2b41c63b61687c2c7e1503c902d54bdf31b79bf3.tar.bz2 samba-2b41c63b61687c2c7e1503c902d54bdf31b79bf3.zip |
Try to bring libsmbclient in line with the new global_myname stuff
(This used to be commit e424b08050b44b1b52abd2af76b1b4dc8b100095)
Diffstat (limited to 'source3/libsmb')
-rw-r--r-- | source3/libsmb/libsmbclient.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/source3/libsmb/libsmbclient.c b/source3/libsmb/libsmbclient.c index dd46749a5a..edf582b34d 100644 --- a/source3/libsmb/libsmbclient.c +++ b/source3/libsmb/libsmbclient.c @@ -46,7 +46,6 @@ static int DLIST_CONTAINS(SMBCFILE * list, SMBCFILE *p) { } extern BOOL in_client; -extern pstring global_myname; /* * Is the logging working / configfile read ? @@ -2625,8 +2624,8 @@ SMBCCTX * smbc_init_context(SMBCCTX * context) * We try to get our netbios name from the config. If that fails we fall * back on constructing our netbios name from our hostname etc */ - if (global_myname) { - context->netbios_name = strdup(global_myname); + if (global_myname()) { + context->netbios_name = strdup(global_myname()); } else { /* |