summaryrefslogtreecommitdiff
path: root/source4/torture/nbt
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2007-07-10 11:54:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:59:21 -0500
commitd57cb82663990dbad7a3b83b86cbc21ca96a9350 (patch)
tree55ba00c9c8e5aa0ddca6c332ad27ef6227d66016 /source4/torture/nbt
parenta87dea2a0894015cf4a3140995791f5468c40038 (diff)
downloadsamba-d57cb82663990dbad7a3b83b86cbc21ca96a9350.tar.gz
samba-d57cb82663990dbad7a3b83b86cbc21ca96a9350.tar.bz2
samba-d57cb82663990dbad7a3b83b86cbc21ca96a9350.zip
r23811: Try to ensure struct nbt_name is always pre-declared. Might fix the
build on aico. Andrew Bartlett (This used to be commit 5609bd9d219f517c25dbc6e6d265eed3ed517883)
Diffstat (limited to 'source4/torture/nbt')
-rw-r--r--source4/torture/nbt/nbt.c19
1 files changed, 10 insertions, 9 deletions
diff --git a/source4/torture/nbt/nbt.c b/source4/torture/nbt/nbt.c
index 2aa05a4216..5c941c60c9 100644
--- a/source4/torture/nbt/nbt.c
+++ b/source4/torture/nbt/nbt.c
@@ -18,32 +18,33 @@
*/
#include "includes.h"
+#include "libcli/nbt/libnbt.h"
#include "torture/torture.h"
#include "torture/nbt/proto.h"
#include "torture/ui.h"
#include "libcli/resolve/resolve.h"
bool torture_nbt_get_name(struct torture_context *tctx,
- struct nbt_name *name,
- const char **address)
+ struct nbt_name *name,
+ const char **address)
{
make_nbt_name_server(name, strupper_talloc(tctx,
- torture_setting_string(tctx, "host", NULL)));
+ torture_setting_string(tctx, "host", NULL)));
/* do an initial name resolution to find its IP */
torture_assert_ntstatus_ok(tctx,
- resolve_name(name, tctx, address, NULL),
- talloc_asprintf(tctx,
- "Failed to resolve %s", name->name));
-
+ resolve_name(name, tctx, address, NULL),
+ talloc_asprintf(tctx,
+ "Failed to resolve %s", name->name));
+
return true;
}
NTSTATUS torture_nbt_init(void)
{
struct torture_suite *suite = torture_suite_create(
- talloc_autofree_context(),
- "NBT");
+ talloc_autofree_context(),
+ "NBT");
/* nbt tests */
torture_suite_add_suite(suite, torture_nbt_register());
torture_suite_add_suite(suite, torture_nbt_wins());