]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Protect some "debug" references
authorHarlan Stenn <stenn@ntp.org>
Wed, 9 May 2007 00:32:56 +0000 (20:32 -0400)
committerHarlan Stenn <stenn@ntp.org>
Wed, 9 May 2007 00:32:56 +0000 (20:32 -0400)
bk: 464116b8ER_3jOFnU1w94SxBz3NQVQ

ntpd/ntp_control.c
ntpd/ntp_scanner.c

index 73f0c9be0d5f2959fc3076bec2941975c5965297..e0f3dd3ca5e0d3da00ef09fe9e823b7c1e4b33e0 100644 (file)
@@ -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'
index 75c042096d7b4d0761d58902e676f0d28a250d1b..76a89144d7e3e945789b787a0cf9b57d7949cdfd 100644 (file)
@@ -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)))