[Git][NTPsec/ntpsec][master] Bug fix - add missing slots to table

Hal Murray gitlab at mg.gitlab.com
Wed Feb 20 11:00:58 UTC 2019


Hal Murray pushed to branch master at NTPsec / ntpsec


Commits:
01fbef17 by Hal Murray at 2019-02-20T10:58:14Z
Bug fix - add missing slots to table

- - - - -


1 changed file:

- ntpd/ntp_control.c


Changes:

=====================================
ntpd/ntp_control.c
=====================================
@@ -319,9 +319,13 @@ static const struct ctl_var sys_var[] = {
 	{ CS_MRU_OLDEST_AGE,	RO, "mru_oldest_age" },
 #ifdef ENABLE_LEAP_SMEAR
 #define	CS_LEAPSMEARINTV	96
-	{ CS_LEAPSMEARINTV,	RO|DEF, "leapsmearinterval" },   
+	{ CS_LEAPSMEARINTV,	RO|DEF, "leapsmearinterval" },
 #define	CS_LEAPSMEAROFFS	97
-	{ CS_LEAPSMEAROFFS,	RO|DEF, "leapsmearoffset" },     
+	{ CS_LEAPSMEAROFFS,	RO|DEF, "leapsmearoffset" },
+#else
+/* hack to keep table aligned */
+	{ CS_MRU_OLDEST_AGE,	RO, "mru_oldest_age" },
+	{ CS_MRU_OLDEST_AGE,	RO, "mru_oldest_age" },
 #endif
 #define	CS_TICK                 98
 	{ CS_TICK,		RO, "tick" },



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/01fbef17e87816f5ce007ff9e318cebc2bdc1371

-- 
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/01fbef17e87816f5ce007ff9e318cebc2bdc1371
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/20190220/eb6c4f46/attachment.html>


More information about the vc mailing list