summaryrefslogtreecommitdiff
path: root/source3/nmbd/nmbd_synclists.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2007-11-09 15:09:16 -0800
committerJeremy Allison <jra@samba.org>2007-11-09 15:09:16 -0800
commit6c25260ec12552653eabed25451866e370108c37 (patch)
tree28dd27dac5e765c489057976c56c2f5a9b3ff459 /source3/nmbd/nmbd_synclists.c
parentf9578af966c1c1b5b5df4acac9977472d2896bea (diff)
downloadsamba-6c25260ec12552653eabed25451866e370108c37.tar.gz
samba-6c25260ec12552653eabed25451866e370108c37.tar.bz2
samba-6c25260ec12552653eabed25451866e370108c37.zip
Remove more static fstring/pstrings. Fix socket option
set on wrong fd (-1). Jeremy. (This used to be commit 52fe04df8e8c08126afe61d509fc1d3cb676e327)
Diffstat (limited to 'source3/nmbd/nmbd_synclists.c')
-rw-r--r--source3/nmbd/nmbd_synclists.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/source3/nmbd/nmbd_synclists.c b/source3/nmbd/nmbd_synclists.c
index aaa56f9216..300368cd60 100644
--- a/source3/nmbd/nmbd_synclists.c
+++ b/source3/nmbd/nmbd_synclists.c
@@ -28,8 +28,6 @@
#include "includes.h"
-extern fstring local_machine;
-
struct sync_record {
struct sync_record *next, *prev;
unstring workgroup;
@@ -92,7 +90,7 @@ static void sync_child(char *name, int nm_type,
return;
}
- make_nmb_name(&calling, local_machine, 0x0);
+ make_nmb_name(&calling, get_local_machine_name(), 0x0);
make_nmb_name(&called , name, nm_type);
if (!cli_session_request(cli, &calling, &called)) {