mirror of
https://github.com/samba-team/samba.git
synced 2025-01-11 05:18:09 +03:00
s4:dlz_bind9: avoid some compiler warnings
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
parent
491715399f
commit
fbebe7e756
@ -466,7 +466,7 @@ static isc_result_t b9_putnamedrr(struct dlz_bind9_data *state,
|
||||
parse options
|
||||
*/
|
||||
static isc_result_t parse_options(struct dlz_bind9_data *state,
|
||||
unsigned int argc, char *argv[],
|
||||
unsigned int argc, const char **argv,
|
||||
struct b9_options *options)
|
||||
{
|
||||
int opt;
|
||||
@ -477,7 +477,7 @@ static isc_result_t parse_options(struct dlz_bind9_data *state,
|
||||
{ NULL }
|
||||
};
|
||||
|
||||
pc = poptGetContext("dlz_bind9", argc, (const char **)argv, long_options,
|
||||
pc = poptGetContext("dlz_bind9", argc, argv, long_options,
|
||||
POPT_CONTEXT_KEEP_FIRST);
|
||||
while ((opt = poptGetNextOpt(pc)) != -1) {
|
||||
switch (opt) {
|
||||
@ -571,7 +571,7 @@ static int dlz_state_debug_unregister(struct dlz_bind9_data *state)
|
||||
called to initialise the driver
|
||||
*/
|
||||
_PUBLIC_ isc_result_t dlz_create(const char *dlzname,
|
||||
unsigned int argc, char *argv[],
|
||||
unsigned int argc, const char **argv,
|
||||
void **dbdata, ...)
|
||||
{
|
||||
struct dlz_bind9_data *state;
|
||||
|
@ -100,7 +100,7 @@ int dlz_version(unsigned int *flags);
|
||||
/*
|
||||
* dlz_create() is required for all DLZ external drivers.
|
||||
*/
|
||||
isc_result_t dlz_create(const char *dlzname, unsigned int argc, char *argv[], void **dbdata, ...);
|
||||
isc_result_t dlz_create(const char *dlzname, unsigned int argc, const char **argv, void **dbdata, ...);
|
||||
|
||||
/*
|
||||
* dlz_destroy() is optional, and will be called when the driver is
|
||||
|
@ -61,7 +61,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, discard_const_p(char *, argv), &dbdata,
|
||||
torture_assert_int_equal(tctx, dlz_create("samba_dlz", 3, argv, &dbdata,
|
||||
"log", dlz_bind9_log_wrapper, NULL), ISC_R_SUCCESS,
|
||||
"Failed to create samba_dlz");
|
||||
|
||||
@ -109,7 +109,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, discard_const_p(char *, argv), &dbdata,
|
||||
torture_assert_int_equal(tctx, dlz_create("samba_dlz", 3, argv, &dbdata,
|
||||
"log", dlz_bind9_log_wrapper,
|
||||
"writeable_zone", dlz_bind9_writeable_zone_hook, NULL),
|
||||
ISC_R_SUCCESS,
|
||||
@ -144,7 +144,7 @@ static bool test_dlz_bind9_gensec(struct torture_context *tctx, const char *mech
|
||||
NULL
|
||||
};
|
||||
tctx_static = tctx;
|
||||
torture_assert_int_equal(tctx, dlz_create("samba_dlz", 3, discard_const_p(char *, argv), &dbdata,
|
||||
torture_assert_int_equal(tctx, dlz_create("samba_dlz", 3, argv, &dbdata,
|
||||
"log", dlz_bind9_log_wrapper,
|
||||
"writeable_zone", dlz_bind9_writeable_zone_hook, NULL),
|
||||
ISC_R_SUCCESS,
|
||||
@ -216,6 +216,7 @@ static struct torture_suite *dlz_bind9_suite(TALLOC_CTX *ctx)
|
||||
/**
|
||||
* DNS torture module initialization
|
||||
*/
|
||||
NTSTATUS torture_bind_dns_init(void);
|
||||
NTSTATUS torture_bind_dns_init(void)
|
||||
{
|
||||
struct torture_suite *suite;
|
||||
|
Loading…
Reference in New Issue
Block a user