[Git][NTPsec/ntpsec][master] Fix a reversed conditionalization.
Eric S. Raymond
gitlab at mg.gitlab.com
Thu May 4 20:32:18 UTC 2017
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
7c438666 by Eric S. Raymond at 2017-05-04T16:31:43-04:00
Fix a reversed conditionalization.
- - - - -
1 changed file:
- ntpfrob/main.c
Changes:
=====================================
ntpfrob/main.c
=====================================
--- a/ntpfrob/main.c
+++ b/ntpfrob/main.c
@@ -41,14 +41,14 @@ main(int argc, char **argv)
got_one = true;
switch (ch) {
case 'A':
-#ifndef HAVE_ADJTIMEX
+#ifdef HAVE_ADJTIMEX
tickadj(mode==json, 0);
#else
fputs("ntpfrob: no adjtimex(2)\n", stderr);
#endif /* HAVE_ADJTIMEX */
break;
case 'a':
-#ifndef HAVE_ADJTIMEX
+#ifdef HAVE_ADJTIMEX
tickadj(mode, atoi(optarg));
#else
fputs("ntpfrob: no adjtimex(2)\n", stderr);
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/7c438666e08e6b386e1d2d327617387926df2b9c
---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/7c438666e08e6b386e1d2d327617387926df2b9c
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170504/a8968e58/attachment.html>
More information about the vc
mailing list