From 4867378592656d812fcd02d1ea24ccb2c99bf9b7 Mon Sep 17 00:00:00 2001 From: Tim Potter Date: Tue, 24 May 2005 05:51:20 +0000 Subject: 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. (-: (This used to be commit affacc539864435cbc749a4c1a6b848c61b7182b) --- source4/lib/registry/tools/regdiff.c | 2 +- source4/lib/registry/tools/regpatch.c | 2 +- source4/lib/registry/tools/regshell.c | 2 +- source4/lib/registry/tools/regtree.c | 2 +- source4/torture/smbiconv.c | 2 +- source4/utils/nmblookup.c | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/source4/lib/registry/tools/regdiff.c b/source4/lib/registry/tools/regdiff.c index dfc8be13ca..4260a56142 100644 --- a/source4/lib/registry/tools/regdiff.c +++ b/source4/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/source4/lib/registry/tools/regpatch.c b/source4/lib/registry/tools/regpatch.c index aeb418560d..5c9851b71b 100644 --- a/source4/lib/registry/tools/regpatch.c +++ b/source4/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/source4/lib/registry/tools/regshell.c b/source4/lib/registry/tools/regshell.c index ecc2bfc7aa..f1fd740830 100644 --- a/source4/lib/registry/tools/regshell.c +++ b/source4/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/source4/lib/registry/tools/regtree.c b/source4/lib/registry/tools/regtree.c index 72cb0670de..2cf5f6ab96 100644 --- a/source4/lib/registry/tools/regtree.c +++ b/source4/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/source4/torture/smbiconv.c b/source4/torture/smbiconv.c index 8e68d252d6..7ca6bb1c12 100644 --- a/source4/torture/smbiconv.c +++ b/source4/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/source4/utils/nmblookup.c b/source4/utils/nmblookup.c index bf034b26a3..fb21cb5529 100644 --- a/source4/utils/nmblookup.c +++ b/source4/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); -- cgit