]> git.ipfire.org Git - thirdparty/ntp.git/commitdiff
Use -n for nt running as a servce instead of borrowing -d for Win32.
authorDanny Mayer <mayer@ntp.org>
Thu, 12 Jun 2003 02:52:29 +0000 (22:52 -0400)
committerDanny Mayer <mayer@ntp.org>
Thu, 12 Jun 2003 02:52:29 +0000 (22:52 -0400)
bk: 3ee7eaedXhgrfoBTstyf7PmG47kOJw

ntpd/cmd_args.c

index bdf5314f2717edc483dd5981a9e6fcec749dea41..44d5433c6c354b30b034e831b22be07c9964ca03 100644 (file)
@@ -78,14 +78,6 @@ getstartup(
                    break;
 #else
                case 'd':
-/*
- * We need to do this in order to have a way of running
- * without running as a service
- */
-#ifdef SYS_WINNT
-                   NoWinService = TRUE;
-                   break;
-#endif
                case 'D':
                    msyslog(LOG_ERR, "ntpd not compiled with -DDEBUG option - no DEBUG support");
                    fprintf(stderr, "ntpd not compiled with -DDEBUG option - no DEBUG support");
@@ -125,6 +117,9 @@ getstartup(
                case 'n':
                case 'q':
                    ++nofork;
+#ifdef SYS_WINNT
+                   NoWinService = TRUE;         
+#endif
                    break;
 
                case 'N':
@@ -236,16 +231,8 @@ getCmdOpts(
                    case 'd':
 #ifdef DEBUG
                        debug++;
-#else
-/*
- * We need to do this in order to have a way of running
- * without running as a service
- */
-#ifdef SYS_WINNT
-                       NoWinService = TRUE;     
 #else
                        errflg++;
-#endif
 #endif /* DEBUG */
                        break;