From d58976012eada94d55eb3ac89fd1601291167232 Mon Sep 17 00:00:00 2001 From: Andrew Bartlett Date: Sat, 19 Sep 2009 11:59:44 -0700 Subject: s4:utils Explian fix for testparm -v The problem here was that we take an address of a bool, and then (via a void*) cast it to a int *, so put this in a comment. Andrew Bartlett --- source4/utils/testparm.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'source4/utils') diff --git a/source4/utils/testparm.c b/source4/utils/testparm.c index d9cbac6536..a71470a3a8 100644 --- a/source4/utils/testparm.c +++ b/source4/utils/testparm.c @@ -173,7 +173,6 @@ static int do_share_checks(struct loadparm_context *lp_ctx, const char *cname, c int main(int argc, const char *argv[]) { - static bool silent_mode = false; int ret = 0; poptContext pc; /* @@ -184,7 +183,12 @@ static int do_share_checks(struct loadparm_context *lp_ctx, const char *cname, c static char *parameter_name = NULL; static const char *cname; static const char *caddr; - static int show_defaults = false; + static int silent_mode = false; + static int show_defaults = false; /* This must be an 'int', + * as we take it as we pass + * it's address as an int + * pointer */ +.c struct loadparm_context *lp_ctx; struct poptOption long_options[] = { -- cgit