]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
torture: Add discard_const_p() to work around dlz_create prototype
authorAndrew Bartlett <abartlet@samba.org>
Fri, 7 Sep 2012 05:10:24 +0000 (15:10 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Tue, 11 Sep 2012 14:25:35 +0000 (16:25 +0200)
source4/torture/dns/dlz_bind9.c

index d01e506718708aca7c9f7052d41abeb3d69c4c78..6372ca8df624d27db365819fed6a34eea8bc478a 100644 (file)
@@ -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,