From: wessels <> Date: Sat, 21 Feb 1998 04:02:42 +0000 (+0000) Subject: made -d command line option take a debugging level also X-Git-Tag: SQUID_3_0_PRE1~4049 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=723e8aa30d6e3db94329eb11262e272994fe8472;p=thirdparty%2Fsquid.git made -d command line option take a debugging level also --- diff --git a/src/globals.h b/src/globals.h index 4fcf4fc6a0..654800827c 100644 --- a/src/globals.h +++ b/src/globals.h @@ -1,6 +1,6 @@ /* - * $Id: globals.h,v 1.37 1998/02/12 23:35:58 wessels Exp $ + * $Id: globals.h,v 1.38 1998/02/20 21:03:44 wessels Exp $ */ extern FILE *debug_log; /* NULL */ @@ -52,7 +52,7 @@ extern int icmp_sock; /* -1 */ extern int neighbors_do_private_keys; /* 1 */ extern int opt_accel_uses_host; /* 0 */ extern int opt_catch_signals; /* 1 */ -extern int opt_debug_stderr; /* 0 */ +extern int opt_debug_stderr; /* -1 */ extern int opt_dns_tests; /* 1 */ extern int opt_foreground_rebuild; /* 0 */ extern int opt_forwarded_for; /* 1 */ diff --git a/src/main.cc b/src/main.cc index d5ef5e4461..f7cc870935 100644 --- a/src/main.cc +++ b/src/main.cc @@ -1,6 +1,6 @@ /* - * $Id: main.cc,v 1.223 1998/02/19 23:09:53 wessels Exp $ + * $Id: main.cc,v 1.224 1998/02/20 21:02:42 wessels Exp $ * * DEBUG: section 1 Startup and Main Loop * AUTHOR: Harvest Derived @@ -167,7 +167,7 @@ mainParseOptions(int argc, char *argv[]) extern char *optarg; int c; - while ((c = getopt(argc, argv, "CDFNRSVYXa:df:hk:m::su:vz?")) != -1) { + while ((c = getopt(argc, argv, "CDFNRSVYXa:d:f:hk:m::su:vz?")) != -1) { switch (c) { case 'C': opt_catch_signals = 0; @@ -201,7 +201,7 @@ mainParseOptions(int argc, char *argv[]) httpPortNumOverride = atoi(optarg); break; case 'd': - opt_debug_stderr = 1; + opt_debug_stderr = atoi(optarg); break; case 'f': xfree(ConfigFile);