From: Danny Mayer Date: Thu, 12 Jun 2003 02:52:29 +0000 (-0400) Subject: Use -n for nt running as a servce instead of borrowing -d for Win32. X-Git-Tag: NTP_4_1_80_RC1~3^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=20b9a79c0dc623fc046dc80b475fe1f2e7707bd5;p=thirdparty%2Fntp.git Use -n for nt running as a servce instead of borrowing -d for Win32. bk: 3ee7eaedXhgrfoBTstyf7PmG47kOJw --- diff --git a/ntpd/cmd_args.c b/ntpd/cmd_args.c index bdf5314f2..44d5433c6 100644 --- a/ntpd/cmd_args.c +++ b/ntpd/cmd_args.c @@ -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;