From: Harlan Stenn Date: Wed, 9 May 2007 00:32:56 +0000 (-0400) Subject: Protect some "debug" references X-Git-Tag: NTP_4_2_5P30~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7173f117e7c8ae6fe860bce8271fe5dc9fcf06ff;p=thirdparty%2Fntp.git Protect some "debug" references bk: 464116b8ER_3jOFnU1w94SxBz3NQVQ --- diff --git a/ntpd/ntp_control.c b/ntpd/ntp_control.c index 73f0c9be0..e0f3dd3ca 100644 --- a/ntpd/ntp_control.c +++ b/ntpd/ntp_control.c @@ -2329,8 +2329,11 @@ static void configure(struct recvbuf *rbufp,int restrict_mask) remote_config.err_pos = 0; remote_config.no_errors = 0; +#ifdef DEBUG if (debug > 0) printf("Got Remote Configuration Command: %s\n\n", remote_config.buffer); +#endif + config_remotely(); /* Check if errors were reported. If not, output 'Config Succeeded' diff --git a/ntpd/ntp_scanner.c b/ntpd/ntp_scanner.c index 75c042096..76a89144d 100644 --- a/ntpd/ntp_scanner.c +++ b/ntpd/ntp_scanner.c @@ -555,10 +555,12 @@ int yylex() push_back_char(yytext[i]); yytext[i] = '\0'; } while (i == 0); - + +#ifdef DEBUG if (debug >= 3) printf ("yylex: Just Read: %s\n", yytext); - +#endif + /* Now return the desired token */ if ((expect_string == NO_ARG) && (token = is_keyword(yytext, &expect_string)))