-/*
+/*
Unix SMB/CIFS implementation.
NBT netbios routines and daemon - version 2
Copyright (C) Andrew Tridgell 1994-1998
do a NetServerEnum and record the results in fname
******************************************************************/
-static void sync_child(char *name, int nm_type,
+static void sync_child(char *name, int nm_type,
char *workgroup,
struct in_addr ip, bool local, bool servers,
char *fname)
/* Fetch a workgroup list. */
cli_NetServerEnum(cli, unix_workgroup,
- local_type|SV_TYPE_DOMAIN_ENUM,
+ local_type|SV_TYPE_DOMAIN_ENUM,
callback, NULL);
/* Now fetch a server list. */
if (servers) {
fstrcpy(unix_workgroup, workgroup);
- cli_NetServerEnum(cli, unix_workgroup,
+ cli_NetServerEnum(cli, unix_workgroup,
local?SV_TYPE_LOCAL_LIST_ONLY:SV_TYPE_ALL,
callback, NULL);
}
******************************************************************/
void sync_browse_lists(struct work_record *work,
- char *name, int nm_type,
+ char *name, int nm_type,
struct in_addr ip, bool local, bool servers)
{
struct sync_record *s;
update_workgroup_ttl(work,lp_max_ttl());
} else {
/* Create the workgroup on the subnet. */
- work = create_workgroup_on_subnet(unicast_subnet,
+ work = create_workgroup_on_subnet(unicast_subnet,
sname, lp_max_ttl());
if (work) {
/* remember who the master is */
}
}
return;
- }
+ }
work = find_workgroup_on_subnet(unicast_subnet, s->workgroup);
if (!work) {
servrec->serv.type = stype;
}
return;
- }
+ }
- /* Create the server in the workgroup. */
+ /* Create the server in the workgroup. */
create_server_on_workgroup(work, sname,stype, lp_max_ttl(), comment);
}