diff options
author | Christopher R. Hertel <crh@samba.org> | 2001-08-26 06:43:39 +0000 |
---|---|---|
committer | Christopher R. Hertel <crh@samba.org> | 2001-08-26 06:43:39 +0000 |
commit | 5b975d3a9cea39e9992a9b556b8a6d9d3ec14807 (patch) | |
tree | 16a78efd43ab40e8df4be3f8a9eef3d62b6ccddd /source/nmbd | |
parent | 0777ebc04b838b6b9036a5d0a6e0565bb0a65d9f (diff) | |
download | samba-5b975d3a9cea39e9992a9b556b8a6d9d3ec14807.tar.gz samba-5b975d3a9cea39e9992a9b556b8a6d9d3ec14807.tar.xz samba-5b975d3a9cea39e9992a9b556b8a6d9d3ec14807.zip |
Same as nmbd.c. These now test wins_srv_count() instead of lp_wins_server
to determine whether the 'wins server' parameter is set.
Diffstat (limited to 'source/nmbd')
-rw-r--r-- | source/nmbd/nmbd_namelistdb.c | 2 | ||||
-rw-r--r-- | source/nmbd/nmbd_subnetdb.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/source/nmbd/nmbd_namelistdb.c b/source/nmbd/nmbd_namelistdb.c index 15328af33eb..efac14c8c6a 100644 --- a/source/nmbd/nmbd_namelistdb.c +++ b/source/nmbd/nmbd_namelistdb.c @@ -37,7 +37,7 @@ uint16 samba_nb_type = 0; /* samba's NetBIOS name type */ */ void set_samba_nb_type(void) { - if( lp_wins_support() || (*lp_wins_server()) ) + if( lp_wins_support() || wins_srv_count() ) samba_nb_type = NB_MFLAG; /* samba is a 'hybrid' node type. */ else samba_nb_type = NB_BFLAG; /* samba is broadcast-only node type. */ diff --git a/source/nmbd/nmbd_subnetdb.c b/source/nmbd/nmbd_subnetdb.c index 3bad3f9568a..e77a47801d0 100644 --- a/source/nmbd/nmbd_subnetdb.c +++ b/source/nmbd/nmbd_subnetdb.c @@ -277,7 +277,7 @@ BOOL create_subnets(void) * server address can change. crh */ - if(*lp_wins_server()) + if( wins_srv_count() ) { struct in_addr real_wins_ip; real_wins_ip = wins_srv_ip(); |