From affacc539864435cbc749a4c1a6b848c61b7182b Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Tue, 24 May 2005 05:51:20 +0000 Subject: [PATCH] r6951: Fix all calls to setup_logging() that use 'True' as a second argument. In Samba4 this is now an enum. Possibly by accident, True just happens to map to the right value in this case. (-: --- source/lib/registry/tools/regdiff.c | 2 +- source/lib/registry/tools/regpatch.c | 2 +- source/lib/registry/tools/regshell.c | 2 +- source/lib/registry/tools/regtree.c | 2 +- source/torture/smbiconv.c | 2 +- source/utils/nmblookup.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/source/lib/registry/tools/regdiff.c b/source/lib/registry/tools/regdiff.c index dfc8be13cab..4260a56142b 100644 --- a/source/lib/registry/tools/regdiff.c +++ b/source/lib/registry/tools/regdiff.c @@ -157,7 +157,7 @@ static void writediff(struct registry_key *oldkey, struct registry_key *newkey, return 1; } } - setup_logging(argv[0], True); + setup_logging(argv[0], DEBUG_STDOUT); poptFreeContext(pc); diff --git a/source/lib/registry/tools/regpatch.c b/source/lib/registry/tools/regpatch.c index aeb418560d8..5c9851b71b7 100644 --- a/source/lib/registry/tools/regpatch.c +++ b/source/lib/registry/tools/regpatch.c @@ -766,7 +766,7 @@ static int nt_apply_reg_command_file(struct registry_context *r, const char *cmd while((opt = poptGetNextOpt(pc)) != -1) { } - setup_logging(argv[0], True); + setup_logging(argv[0], DEBUG_STDOUT); if (remote) { error = reg_open_remote (&h, cmdline_credentials, remote); diff --git a/source/lib/registry/tools/regshell.c b/source/lib/registry/tools/regshell.c index ecc2bfc7aa3..f1fd740830c 100644 --- a/source/lib/registry/tools/regshell.c +++ b/source/lib/registry/tools/regshell.c @@ -392,7 +392,7 @@ static char **reg_completion(const char *text, int start, int end) while((opt = poptGetNextOpt(pc)) != -1) { } - setup_logging("regtree", True); + setup_logging("regtree", DEBUG_STDOUT); if (remote) { error = reg_open_remote (&h, cmdline_credentials, remote); diff --git a/source/lib/registry/tools/regtree.c b/source/lib/registry/tools/regtree.c index 72cb0670de0..2cf5f6ab962 100644 --- a/source/lib/registry/tools/regtree.c +++ b/source/lib/registry/tools/regtree.c @@ -102,7 +102,7 @@ static void print_tree(int l, struct registry_key *p, int fullpath, int novals) while((opt = poptGetNextOpt(pc)) != -1) { } - setup_logging("regtree", True); + setup_logging("regtree", DEBUG_STDOUT); if (remote) { error = reg_open_remote(&h, cmdline_credentials, remote); diff --git a/source/torture/smbiconv.c b/source/torture/smbiconv.c index 8e68d252d6e..7ca6bb1c125 100644 --- a/source/torture/smbiconv.c +++ b/source/torture/smbiconv.c @@ -197,7 +197,7 @@ int main(int argc, char *argv[]) /* the following functions are part of the Samba debugging facilities. See lib/debug.c */ - setup_logging("smbiconv", True); + setup_logging("smbiconv", DEBUG_STDOUT); if (preload_modules[0]) smb_load_modules(preload_modules); diff --git a/source/utils/nmblookup.c b/source/utils/nmblookup.c index bf034b26a39..fb21cb55296 100644 --- a/source/utils/nmblookup.c +++ b/source/utils/nmblookup.c @@ -271,7 +271,7 @@ int main(int argc,char *argv[]) { 0, 0, 0, 0 } }; - setup_logging(argv[0], True); + setup_logging(argv[0], DEBUG_STDOUT); pc = poptGetContext("nmblookup", argc, (const char **)argv, long_options, POPT_CONTEXT_KEEP_FIRST); -- 2.34.1