s4:torture/nbt/wins - Add more casts
authorMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Sat, 17 Oct 2009 20:36:00 +0000 (22:36 +0200)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 1 Dec 2009 05:48:38 +0000 (16:48 +1100)
source4/torture/nbt/wins.c

index 13dc066080d9a0176bc4943da9979a6711f99438..d69c518aa354a4550b47f6139a31820ce1fe25d5 100644 (file)
@@ -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;