[ntpsec commit] Regularize some synonyms for __UNUSED__.
Eric S. Raymond
esr at ntpsec.org
Tue Sep 29 13:11:51 UTC 2015
Module: ntpsec
Branch: master
Commit: b8ba9dc8ea501337a6b2237cb11f93f1df9bdfc3
Changeset: http://git.ntpsec.org/ntpsec/commit/?id=b8ba9dc8ea501337a6b2237cb11f93f1df9bdfc3
Author: Eric S. Raymond <esr at thyrsus.com>
Date: Tue Sep 29 09:11:13 2015 -0400
Regularize some synonyms for __UNUSED__.
---
ntpd/ntp_util.c | 2 +-
ntpq/ntpq-subs.c | 2 +-
ntpq/ntpq.c | 7 ++++---
3 files changed, 6 insertions(+), 5 deletions(-)
diff --git a/ntpd/ntp_util.c b/ntpd/ntp_util.c
index c88bb3f..25be849 100644
--- a/ntpd/ntp_util.c
+++ b/ntpd/ntp_util.c
@@ -836,7 +836,7 @@ rereadkeys(void)
}
-#if notyet
+#if __UNUSED__
/*
* ntp_exit - document explicitly that ntpd has exited
*/
diff --git a/ntpq/ntpq-subs.c b/ntpq/ntpq-subs.c
index f6c6138..0981546 100644
--- a/ntpq/ntpq-subs.c
+++ b/ntpq/ntpq-subs.c
@@ -1816,7 +1816,7 @@ dogetpeers(
int dsize;
u_short rstatus;
-#ifdef notdef
+#ifdef __UNUSED__
res = doquerylist(pvl, CTL_OP_READVAR, associd, 0, &rstatus,
&dsize, &datap);
#else
diff --git a/ntpq/ntpq.c b/ntpq/ntpq.c
index 2c8db5d..9598a16 100644
--- a/ntpq/ntpq.c
+++ b/ntpq/ntpq.c
@@ -1022,10 +1022,11 @@ getresponse(
TRACE(1, ("Association ID %d doesn't match expected %d\n",
ntohs(rpkt.associd), associd));
/*
- * Hack for silly fuzzballs which, at the time of writing,
- * return an assID of sys.peer when queried for system variables.
+ * Hack for silly fuzzballs which, at the time
+ * of writing, return an assID of sys.peer
+ * when queried for system variables.
*/
-#ifdef notdef
+#ifdef __UNUSED__
continue;
#endif
}
More information about the vc
mailing list