summaryrefslogtreecommitdiff
path: root/source4/torture/dns
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2012-09-07 15:10:24 +1000
committerAndrew Bartlett <abartlet@samba.org>2012-09-11 16:25:35 +0200
commit1a3d6de20aa4e45dd1c5a8ed6f8b5193efa52167 (patch)
tree0dec89a8f02036302035d94a61444e2aa434011d /source4/torture/dns
parent69c2e18865ca3cfa8fe1558e43253a74521b2d65 (diff)
downloadsamba-1a3d6de20aa4e45dd1c5a8ed6f8b5193efa52167.tar.gz
samba-1a3d6de20aa4e45dd1c5a8ed6f8b5193efa52167.tar.bz2
samba-1a3d6de20aa4e45dd1c5a8ed6f8b5193efa52167.zip
torture: Add discard_const_p() to work around dlz_create prototype
Diffstat (limited to 'source4/torture/dns')
-rw-r--r--source4/torture/dns/dlz_bind9.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/dns/dlz_bind9.c b/source4/torture/dns/dlz_bind9.c
index d01e506718..6372ca8df6 100644
--- a/source4/torture/dns/dlz_bind9.c
+++ b/source4/torture/dns/dlz_bind9.c
@@ -58,7 +58,7 @@ static bool test_dlz_bind9_create(struct torture_context *tctx)
NULL
};
tctx_static = tctx;
- torture_assert_int_equal(tctx, dlz_create("samba_dlz", 3, argv, &dbdata,
+ torture_assert_int_equal(tctx, dlz_create("samba_dlz", 3, discard_const_p(char *, argv), &dbdata,
"log", dlz_bind9_log_wrapper, NULL), ISC_R_SUCCESS,
"Failed to create samba_dlz");
@@ -106,7 +106,7 @@ static bool test_dlz_bind9_configure(struct torture_context *tctx)
NULL
};
tctx_static = tctx;
- torture_assert_int_equal(tctx, dlz_create("samba_dlz", 3, argv, &dbdata,
+ torture_assert_int_equal(tctx, dlz_create("samba_dlz", 3, discard_const_p(char *, argv), &dbdata,
"log", dlz_bind9_log_wrapper,
"writeable_zone", dlz_bind9_writeable_zone_hook, NULL),
ISC_R_SUCCESS,