From 2fefa818a95138fc7d6508093f426cb4ed92138f Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Tue, 28 Aug 2007 00:16:58 +0000 Subject: r24728: Use more stock torture functions. (This used to be commit da3a7ee407a2b41bd01f45072cad12bf29250b33) --- source4/torture/unix/unix_info2.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source4/torture/unix/unix_info2.c') diff --git a/source4/torture/unix/unix_info2.c b/source4/torture/unix/unix_info2.c index 4c47179099..1e063fbe8f 100644 --- a/source4/torture/unix/unix_info2.c +++ b/source4/torture/unix/unix_info2.c @@ -46,15 +46,15 @@ struct unix_info2 { uint32_t flags_mask; }; -static struct smbcli_state *connect_to_server(void *mem_ctx) +static struct smbcli_state *connect_to_server(struct torture_context *tctx) { NTSTATUS status; struct smbcli_state *cli; - const char *host = lp_parm_string(-1, "torture", "host"); - const char *share = lp_parm_string(-1, "torture", "share"); + const char *host = torture_setting_string(tctx, "host", NULL); + const char *share = torture_setting_string(tctx, "share", NULL); - status = smbcli_full_connection(mem_ctx, &cli, + status = smbcli_full_connection(tctx, &cli, host, share, NULL, cmdline_credentials, NULL); @@ -399,7 +399,7 @@ BOOL unix_torture_unix_info2(struct torture_context *torture) mem_ctx = talloc_init("smb_query_unix_info2"); torture_assert(torture, mem_ctx != NULL, "out of memory"); - if (!(cli = connect_to_server(mem_ctx))) { + if (!(cli = connect_to_server(torture))) { talloc_free(mem_ctx); return False; } -- cgit