From: Harlan Stenn Date: Wed, 9 May 2007 00:32:56 +0000 (-0400) Subject: Protect some "debug" references X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a1c67fc47e9bb101edabcc2925f330ecfaf3b41e;p=thirdparty%2Fntp.git Protect some "debug" references bk: 464116b8ER_3jOFnU1w94SxBz3NQVQ --- diff --git a/ntpd/ntp_control.c b/ntpd/ntp_control.c index 73f0c9be0d..e0f3dd3ca5 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 75c042096d..76a89144d7 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)))