r6933: Add a couple of helper functions for creating nbt names.
[tprouty/samba.git] / source4 / torture / ldap / cldapbench.c
index 8eaddc78f98bc3cfccdc59d98427ad8134d9c389..0a021dacceed380c3162c86dd09834dc88c13633 100644 (file)
@@ -108,9 +108,7 @@ BOOL torture_bench_cldap(void)
        NTSTATUS status;
        BOOL ret = True;
        
-       name.name = lp_parm_string(-1, "torture", "host");
-       name.type = NBT_NAME_SERVER;
-       name.scope = NULL;
+       make_nbt_name_server(&name, lp_parm_string(-1, "torture", "host"));
 
        /* do an initial name resolution to find its IP */
        status = resolve_name(&name, mem_ctx, &address);