summaryrefslogtreecommitdiff
path: root/source4/libcli
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2007-12-13 22:46:37 +0100
committerStefan Metzmacher <metze@samba.org>2007-12-21 05:50:04 +0100
commit70ccac0f05067c89bbf1503a614d09e3fd429110 (patch)
tree4d9d7425b5ac34ddb70189707a12464f6fe98415 /source4/libcli
parent2bf0cdd01cf399bf28125f9e2a0d419f4e94996c (diff)
downloadsamba-70ccac0f05067c89bbf1503a614d09e3fd429110.tar.gz
samba-70ccac0f05067c89bbf1503a614d09e3fd429110.tar.bz2
samba-70ccac0f05067c89bbf1503a614d09e3fd429110.zip
r26435: Remove global_loadparm instance.
(This used to be commit 66fd8d480bdfeb1c95da8843da3d18abe3f997e1)
Diffstat (limited to 'source4/libcli')
-rw-r--r--source4/libcli/finddcs.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/source4/libcli/finddcs.c b/source4/libcli/finddcs.c
index 4b7f2dce8c..606809751e 100644
--- a/source4/libcli/finddcs.c
+++ b/source4/libcli/finddcs.c
@@ -28,7 +28,6 @@
#include "libcli/libcli.h"
#include "libcli/resolve/resolve.h"
#include "libcli/finddcs.h"
-#include "param/param.h"
struct finddcs_state {
struct composite_context *ctx;
@@ -63,6 +62,7 @@ static void fallback_node_status_replied(struct nbt_name_request *name_req);
struct composite_context *finddcs_send(TALLOC_CTX *mem_ctx,
const char *my_netbios_name,
+ uint16_t nbt_port,
const char *domain_name,
int name_type,
struct dom_sid *domain_sid,
@@ -83,7 +83,7 @@ struct composite_context *finddcs_send(TALLOC_CTX *mem_ctx,
state->ctx = c;
- state->nbt_port = lp_nbt_port(global_loadparm);
+ state->nbt_port = nbt_port;
state->my_netbios_name = talloc_strdup(state, my_netbios_name);
state->domain_name = talloc_strdup(state, domain_name);
if (composite_nomem(state->domain_name, c)) return c;
@@ -250,6 +250,7 @@ NTSTATUS finddcs_recv(struct composite_context *c, TALLOC_CTX *mem_ctx,
NTSTATUS finddcs(TALLOC_CTX *mem_ctx,
const char *my_netbios_name,
+ uint16_t nbt_port,
const char *domain_name, int name_type,
struct dom_sid *domain_sid,
struct resolve_context *resolve_ctx,
@@ -259,6 +260,7 @@ NTSTATUS finddcs(TALLOC_CTX *mem_ctx,
{
struct composite_context *c = finddcs_send(mem_ctx,
my_netbios_name,
+ nbt_port,
domain_name, name_type,
domain_sid, resolve_ctx,
event_ctx, msg_ctx);