From a39f239cb28e4ac6be207d4179bacffce97f1b3e Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Wed, 18 Oct 2006 14:23:19 +0000 Subject: r19392: Use torture_setting_* rather than lp_parm_* where possible. (This used to be commit b28860978fe29c5b10abfb8c59d7182864e21dd6) --- source4/torture/libnet/libnet_lookup.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source4/torture/libnet/libnet_lookup.c') diff --git a/source4/torture/libnet/libnet_lookup.c b/source4/torture/libnet/libnet_lookup.c index eb03eb5eca..7a414b3297 100644 --- a/source4/torture/libnet/libnet_lookup.c +++ b/source4/torture/libnet/libnet_lookup.c @@ -43,9 +43,9 @@ BOOL torture_lookup(struct torture_context *torture) ctx = libnet_context_init(NULL); ctx->cred = cmdline_credentials; - lookup.in.hostname = lp_parm_string(-1, "torture", "host"); + lookup.in.hostname = torture_setting_string(torture, "host", NULL); if (lookup.in.hostname == NULL) { - bindstr = lp_parm_string(-1, "torture", "binding"); + bindstr = torture_setting_string(torture, "binding", NULL); status = dcerpc_parse_binding(mem_ctx, bindstr, &bind); if (NT_STATUS_IS_OK(status)) { lookup.in.hostname = bind->host; @@ -89,9 +89,9 @@ BOOL torture_lookup_host(struct torture_context *torture) ctx = libnet_context_init(NULL); ctx->cred = cmdline_credentials; - lookup.in.hostname = lp_parm_string(-1, "torture", "host"); + lookup.in.hostname = torture_setting_string(torture, "host", NULL); if (lookup.in.hostname == NULL) { - bindstr = lp_parm_string(-1, "torture", "binding"); + bindstr = torture_setting_string(torture, "binding", NULL); status = dcerpc_parse_binding(mem_ctx, bindstr, &bind); if (NT_STATUS_IS_OK(status)) { lookup.in.hostname = bind->host; -- cgit