summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2011-07-01 15:14:08 +1000
committerAndrew Bartlett <abartlet@samba.org>2011-07-02 12:31:34 +1000
commitd4ef70a7645fb2fb21c565566c20619ff5d1a7ec (patch)
tree5c90ba64a51c142fe02735f88b6c36c316c0928d /source4
parent6d8cc418ba9276c7aba0f5d07b420b2a79916d05 (diff)
downloadsamba-d4ef70a7645fb2fb21c565566c20619ff5d1a7ec.tar.gz
samba-d4ef70a7645fb2fb21c565566c20619ff5d1a7ec.tar.bz2
samba-d4ef70a7645fb2fb21c565566c20619ff5d1a7ec.zip
param: Finish conversion from lp_wins_support() -> lp_we_are_a_wins_server()
Jermey started this in 1997 with 0aa493cc0303aa4177f289b9e4c797c8fa180672 (avoiding the duplicate function makes it easier to generate the struct loadparm_globals). Andrew Bartlett
Diffstat (limited to 'source4')
-rw-r--r--source4/nbt_server/query.c2
-rw-r--r--source4/nbt_server/wins/winsserver.c2
-rw-r--r--source4/param/loadparm.c2
-rw-r--r--source4/wrepl_server/wrepl_server.c2
4 files changed, 4 insertions, 4 deletions
diff --git a/source4/nbt_server/query.c b/source4/nbt_server/query.c
index c888dcaca1..8cf387c2dc 100644
--- a/source4/nbt_server/query.c
+++ b/source4/nbt_server/query.c
@@ -82,7 +82,7 @@ void nbtd_request_query(struct nbt_name_socket *nbtsock,
if (!(packet->operation & NBT_FLAG_BROADCAST) &&
(packet->operation & NBT_FLAG_RECURSION_DESIRED) &&
(iname->nb_flags & NBT_NM_GROUP) &&
- lpcfg_wins_support(iface->nbtsrv->task->lp_ctx)) {
+ lpcfg_we_are_a_wins_server(iface->nbtsrv->task->lp_ctx)) {
nbtd_winsserver_request(nbtsock, packet, src);
return;
}
diff --git a/source4/nbt_server/wins/winsserver.c b/source4/nbt_server/wins/winsserver.c
index 5f1f41747f..e9598bab8c 100644
--- a/source4/nbt_server/wins/winsserver.c
+++ b/source4/nbt_server/wins/winsserver.c
@@ -1038,7 +1038,7 @@ NTSTATUS nbtd_winsserver_init(struct nbtd_server *nbtsrv)
uint32_t tmp;
const char *owner;
- if (!lpcfg_wins_support(nbtsrv->task->lp_ctx)) {
+ if (!lpcfg_we_are_a_wins_server(nbtsrv->task->lp_ctx)) {
nbtsrv->winssrv = NULL;
return NT_STATUS_OK;
}
diff --git a/source4/param/loadparm.c b/source4/param/loadparm.c
index a7a0ee2cf4..4deed32926 100644
--- a/source4/param/loadparm.c
+++ b/source4/param/loadparm.c
@@ -1515,7 +1515,7 @@ FN_GLOBAL_LIST(interfaces, szInterfaces)
FN_GLOBAL_STRING(socket_address, szSocketAddress)
FN_GLOBAL_LIST(netbios_aliases, szNetbiosAliases)
FN_GLOBAL_BOOL(disable_netbios, bDisableNetbios)
-FN_GLOBAL_BOOL(wins_support, bWINSsupport)
+FN_GLOBAL_BOOL(we_are_a_wins_server, bWINSsupport)
FN_GLOBAL_BOOL(wins_dns_proxy, bWINSdnsProxy)
FN_GLOBAL_STRING(wins_hook, szWINSHook)
FN_GLOBAL_BOOL(local_master, bLocalMaster)
diff --git a/source4/wrepl_server/wrepl_server.c b/source4/wrepl_server/wrepl_server.c
index 79e0cfc24d..064e11472c 100644
--- a/source4/wrepl_server/wrepl_server.c
+++ b/source4/wrepl_server/wrepl_server.c
@@ -451,7 +451,7 @@ static void wreplsrv_task_init(struct task_server *task)
NTSTATUS status;
struct wreplsrv_service *service;
- if (!lpcfg_wins_support(task->lp_ctx)) {
+ if (!lpcfg_we_are_a_wins_server(task->lp_ctx)) {
return;
}