[Git][NTPsec/ntpsec][master] Repair compilation without refclocks.

Eric S. Raymond gitlab at mg.gitlab.com
Fri Jul 8 17:09:40 UTC 2016


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
a06409a9 by Eric S. Raymond at 2016-07-08T13:09:29-04:00
Repair compilation without refclocks.

- - - - -


1 changed file:

- ntpd/ntp_util.c


Changes:

=====================================
ntpd/ntp_util.c
=====================================
--- a/ntpd/ntp_util.c
+++ b/ntpd/ntp_util.c
@@ -421,11 +421,11 @@ record_peer_stats(
 static const char *
 peerlabel(const struct peer *peer)
 {
-#ifndef ENABLE_CLASSIC_MODE
+#if defined(REFCLOCK) && !defined(ENABLE_CLASSIC_MODE)
  	if (peer->procptr != NULL)
 		return refclock_name((struct peer *)peer);
 	else
-#endif /* ENABLE_CLASSIC_MODE */
+#endif /* defined(REFCLOCK) && !defined(ENABLE_CLASSIC_MODE)*/
 		return stoa(&peer->srcadr);
 }
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/a06409a9115137c060a6c7e5816a78d31e31ba10
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160708/85652236/attachment.html>


More information about the vc mailing list