]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Exclude debug features if building without debug.
authorMartin Burnicki <burnicki@ntp.org>
Thu, 10 Aug 2006 08:40:06 +0000 (08:40 +0000)
committerMartin Burnicki <burnicki@ntp.org>
Thu, 10 Aug 2006 08:40:06 +0000 (08:40 +0000)
Removed obsolete prototype for ntpd_usage().

bk: 44daf0e6lURLBaaF7ufSjMDP0W3mpg

include/ntp_cmdargs.h
ports/winnt/ntpd/ntservice.c

index 1d9993db11031e32caa0f8bf1fab8b55c7585bd4..e9ab9b1c29ccc181b5f31e8231468978817e9b90 100644 (file)
@@ -2,4 +2,3 @@
 
 extern void    getstartup      P((int, char **));
 extern void    getCmdOpts      P((int, char **));
-extern void    ntpd_usage      P((void));
index 8463d749a1dbfb236d91620fa69e15a3c8bd6e68..e619b920581418e623689bf4a2175b9568f84d3f 100644 (file)
@@ -226,6 +226,7 @@ OnConsoleEvent(
        )
 {
        switch (dwCtrlType) {
+#ifdef DEBUG
                case CTRL_BREAK_EVENT :
                        if (debug > 0) {
                                debug <<= 1;
@@ -238,6 +239,7 @@ OnConsoleEvent(
                        }
                        printf("debug level %d\n", debug);
                break ;
+#endif
 
                case CTRL_C_EVENT  :
                case CTRL_CLOSE_EVENT :