1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

Same as nmbd.c. These now test wins_srv_count() instead of lp_wins_server

to determine whether the 'wins server' parameter is set.
(This used to be commit 5b975d3a9c)
This commit is contained in:
Christopher R. Hertel 2001-08-26 06:43:39 +00:00
parent 7fed75b4cb
commit 7c09aa553d
3 changed files with 3 additions and 3 deletions

View File

@ -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. */

View File

@ -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();

View File

@ -54,7 +54,7 @@ static int do_global_checks(void)
ret = 1;
}
if (lp_wins_support() && *lp_wins_server()) {
if (lp_wins_support() && wins_srv_count()) {
printf("ERROR: both 'wins support = true' and 'wins server = <server>' \
cannot be set in the smb.conf file. nmbd will abort with this setting.\n");
ret = 1;