diff options
author | Andrew Bartlett <abartlet@samba.org> | 2009-09-19 11:59:44 -0700 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2009-09-19 14:33:41 -0700 |
commit | d58976012eada94d55eb3ac89fd1601291167232 (patch) | |
tree | 43d687ac66749b5a5fbca1a75f62ffe4e0434eaa /source4 | |
parent | c386c027e7a5ea55a9e6375eaf736718c6dbaae0 (diff) | |
download | samba-d58976012eada94d55eb3ac89fd1601291167232.tar.gz samba-d58976012eada94d55eb3ac89fd1601291167232.tar.bz2 samba-d58976012eada94d55eb3ac89fd1601291167232.zip |
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
Diffstat (limited to 'source4')
-rw-r--r-- | source4/utils/testparm.c | 8 |
1 files changed, 6 insertions, 2 deletions
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[] = { |