[Git][NTPsec/ntpsec][master] And another fix for the no-refclocks case.

Eric S. Raymond gitlab at mg.gitlab.com
Mon Jun 27 06:47:56 UTC 2016


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


Commits:
f2ab9f49 by Eric S. Raymond at 2016-06-27T02:46:34-04:00
And another fix for the no-refclocks case.

- - - - -


1 changed file:

- ntpd/ntp_control.c


Changes:

=====================================
ntpd/ntp_control.c
=====================================
--- a/ntpd/ntp_control.c
+++ b/ntpd/ntp_control.c
@@ -2316,12 +2316,14 @@ ctl_putpeer(
 		break;
 
 	case CP_DISPLAYNAME:
+#ifdef REFCLOCK
 		if (p->procptr != NULL) {
 		    char buf[NI_MAXHOST];
 		    snprintf(buf, sizeof(buf), "%s(%d)",
 			     p->procptr->clockname, p->refclkunit);
 		    ctl_putunqstr(peer_var[id].text, buf, 6);
 		}
+#endif /* REFCLOCK */
 		break;
 
 	default:



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


More information about the vc mailing list