From d05ca8cbba364b65780d35a32495d6388bc3caa8 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 5 Jun 2008 22:02:41 +0200 Subject: Add convenience function for creating nbt sockets in torture. (This used to be commit 1e6bfb1aa7eba1b92ee4bfb318ba843752a993a9) --- source4/torture/nbt/query.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'source4/torture/nbt/query.c') diff --git a/source4/torture/nbt/query.c b/source4/torture/nbt/query.c index 3f3a15cca5..80027a1b68 100644 --- a/source4/torture/nbt/query.c +++ b/source4/torture/nbt/query.c @@ -47,8 +47,7 @@ static void increment_handler(struct nbt_name_request *req) */ static bool bench_namequery(struct torture_context *tctx) { - struct nbt_name_socket *nbtsock = nbt_name_socket_init(tctx, tctx->ev, - lp_iconv_convenience(tctx->lp_ctx)); + struct nbt_name_socket *nbtsock = torture_init_nbt_socket(tctx); int num_sent=0; struct result_struct *result; struct nbt_name_query io; -- cgit