[Git][NTPsec/ntpsec][master] Fix fatal typos in revised ntpdig argument processing.
Eric S. Raymond
gitlab at mg.gitlab.com
Thu May 12 16:59:14 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
6d765ece by Eric S. Raymond at 2016-05-12T12:57:42-04:00
Fix fatal typos in revised ntpdig argument processing.
- - - - -
1 changed file:
- ntpdig/main.c
Changes:
=====================================
ntpdig/main.c
=====================================
--- a/ntpdig/main.c
+++ b/ntpdig/main.c
@@ -216,7 +216,7 @@ ntpdig_main (
#endif
break;
case 'g':
- opt_gap = atoi(optarg);
+ opt_gap = atoi(ntp_optarg);
if (opt_gap <= 0) {
printf("%s: invalid gap value!\n", progname);
exit(1);
@@ -236,7 +236,7 @@ ntpdig_main (
opt_logfile = ntp_optarg;
break;
case 'M':
- opt_ntpversion = atoi(optarg);
+ opt_ntpversion = atoi(ntp_optarg);
if (opt_steplimit <= 0) {
printf("%s: invalid steplimit value!\n", progname);
exit(1);
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/6d765ece38bce78b85eb58fb9113bd3f98ec92ba
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160512/0592f375/attachment.html>
More information about the vc
mailing list