summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2009-10-17 22:36:00 +0200
committerAndrew Bartlett <abartlet@samba.org>2009-12-01 16:48:38 +1100
commit262d26d05a6b1f6b074408ba8be352324d1b0d47 (patch)
tree3c7b7cc3c760c5ce8c189ba36bb922a149c79d82 /source4
parent58a5e764a9c96229cb4daa99d3d8ef18c188b4fe (diff)
downloadsamba-262d26d05a6b1f6b074408ba8be352324d1b0d47.tar.gz
samba-262d26d05a6b1f6b074408ba8be352324d1b0d47.tar.bz2
samba-262d26d05a6b1f6b074408ba8be352324d1b0d47.zip
s4:torture/nbt/wins - Add more casts
Diffstat (limited to 'source4')
-rw-r--r--source4/torture/nbt/wins.c18
1 files changed, 12 insertions, 6 deletions
diff --git a/source4/torture/nbt/wins.c b/source4/torture/nbt/wins.c
index 13dc066080..d69c518aa3 100644
--- a/source4/torture/nbt/wins.c
+++ b/source4/torture/nbt/wins.c
@@ -117,8 +117,10 @@ static bool nbt_test_wins_name(struct torture_context *tctx, const char *address
torture_comment(tctx, "register the name with a wrong address (makes the next request slow!)\n");
io.in.name = *name;
io.in.wins_port = lp_nbt_port(tctx->lp_ctx);
- io.in.wins_servers = str_list_make_single(tctx, address);
- io.in.addresses = str_list_make_single(tctx, "127.64.64.1");
+ io.in.wins_servers = const_str_list(
+ str_list_make_single(tctx, address));
+ io.in.addresses = const_str_list(
+ str_list_make_single(tctx, "127.64.64.1"));
io.in.nb_flags = nb_flags;
io.in.ttl = 300000;
@@ -311,8 +313,10 @@ static bool nbt_test_wins_name(struct torture_context *tctx, const char *address
torture_comment(tctx, "register the name with a wrong address (makes the next request slow!)\n");
io.in.name = *name;
io.in.wins_port = lp_nbt_port(tctx->lp_ctx);
- io.in.wins_servers = str_list_make_single(tctx, address);
- io.in.addresses = str_list_make_single(tctx, "127.64.64.1");
+ io.in.wins_servers = const_str_list(
+ str_list_make_single(tctx, address));
+ io.in.addresses = const_str_list(
+ str_list_make_single(tctx, "127.64.64.1"));
io.in.nb_flags = nb_flags;
io.in.ttl = 300000;
@@ -333,8 +337,10 @@ static bool nbt_test_wins_name(struct torture_context *tctx, const char *address
torture_comment(tctx, "refresh the name with the correct address\n");
refresh.in.name = *name;
refresh.in.wins_port = lp_nbt_port(tctx->lp_ctx);
- refresh.in.wins_servers = str_list_make_single(tctx, address);
- refresh.in.addresses = str_list_make_single(tctx, myaddress);
+ refresh.in.wins_servers = const_str_list(
+ str_list_make_single(tctx, address));
+ refresh.in.addresses = const_str_list(
+ str_list_make_single(tctx, myaddress));
refresh.in.nb_flags = nb_flags;
refresh.in.ttl = 12345;