[ntp:bk-ntp-dev-send] BitKeeper diffs

Harlan Stenn stenn at whimsy.udel.edu
Thu Aug 10 05:15:05 UTC 2006


#### ChangeSet ####
2006-08-09 21:57:02-04:00, mayer at pogo.udel.edu 
  Bug #659: to allow --help through and not start services

==== ports/winnt/ntpd/ntservice.c ====
2006-08-09 21:56:29-04:00, mayer at pogo.udel.edu +2 -2
  Bug #659: to allow --help through and not start services

--- 1.5/ports/winnt/ntpd/ntservice.c	2006-08-10 01:15:05 -04:00
+++ 1.6/ports/winnt/ntpd/ntservice.c	2006-08-10 01:15:05 -04:00
@@ -73,6 +73,7 @@ int main( int argc, char *argv[] )
 	while (argv[i]) {
 		if (!_strnicmp(argv[i], "-d", 2) ||
 			!strcmp(argv[i], "-q") ||
+			!strcmp(argv[i], "--help") ||
 			!strcmp(argv[i], "-n")) {
 			foreground = TRUE;
 			break;
@@ -98,8 +99,7 @@ int main( int argc, char *argv[] )
 #ifdef DEBUG
 			fprintf(stderr, "%s: unable to start as service, rc: %i\n\n", progname, rc);
 #endif
-			ntpd_usage();
-			fprintf(stderr, "\nUse -d, -q, or -n to run from the command line.\n");
+			fprintf(stderr, "\nUse -d, -q, --help or -n to run from the command line.\n");
 			exit(rc);
 		}
 	}


More information about the bk-ntp-dev-send mailing list