From: Harlan Stenn Date: Sun, 20 Aug 2000 19:49:36 +0000 (-0000) Subject: ChangeLog, configure, cmd_args.c: X-Git-Tag: NTP_4_0_99_M~189 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=19caff19fad1c60daea44c4e5cabc7406659f5fb;p=thirdparty%2Fntp.git ChangeLog, configure, cmd_args.c: * ntpd/cmd_args.c (getCmdOpts): Crack -N at pre-scan, as we do the priority wiggle before the final scan. From: Tom Smith We might do better to move the priority wiggle to after the final scan. Especially if we want to permit command-line options to have decent control over the priority. When we rewrite the config file stuff we might go to a multi-scan to solve some of these problems. bk: 39a03650IBPllxFqjYOKhHqA9k9ZAw --- diff --git a/ChangeLog b/ChangeLog index 6f282cfe26..543d80307b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2000-08-20 Harlan Stenn + + * ntpd/cmd_args.c (getCmdOpts): Crack -N at pre-scan, as we do the + priority wiggle before the final scan. + From: Tom Smith + We might do better to move the priority wiggle to after the final + scan. Especially if we want to permit command-line options to + have decent control over the priority. When we rewrite the config + file stuff we might go to a multi-scan to solve some of these + problems. + 2000-08-19 Harlan Stenn * configure.in: '99k6, and manually fix configure. diff --git a/configure b/configure index 888acfec69..50a4beb46b 100755 --- a/configure +++ b/configure @@ -4874,7 +4874,7 @@ int main () { struct ntptimeval foo; -foo.time.tv_nsec; +foo.tv_nsec; ; return 0; } diff --git a/ntpd/cmd_args.c b/ntpd/cmd_args.c index 538a2e025f..2579ee9802 100644 --- a/ntpd/cmd_args.c +++ b/ntpd/cmd_args.c @@ -28,6 +28,7 @@ getstartup( ) { int errflg; + extern int priority_done; int c; #ifdef DEBUG @@ -100,6 +101,10 @@ getstartup( ++nofork; break; + case 'N': + priority_done = strcmp(ntp_optarg, "high"); + break; + case '?': ++errflg; break; @@ -142,7 +147,6 @@ getCmdOpts( ) { extern char *config_file; - extern int priority_done; int errflg; int c; @@ -221,8 +225,7 @@ getCmdOpts( case 'n': /* already done at pre-scan */ break; - case 'N': - priority_done = strcmp(ntp_optarg, "high"); + case 'N': /* already done at pre-scan */ break; case 'p':