[Git][NTPsec/ntpsec][master] Change format of version string to not mislead about meaning of tick field.

Eric S. Raymond gitlab at mg.gitlab.com
Wed Dec 28 15:33:36 UTC 2016


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


Commits:
02217aa4 by Eric S. Raymond at 2016-12-28T10:32:39-05:00
Change format of version string to not mislead about meaning of tick field.

- - - - -


2 changed files:

- ntpd/ntpd.c
- pylib/util.py


Changes:

=====================================
ntpd/ntpd.c
=====================================
--- a/ntpd/ntpd.c
+++ b/ntpd/ntpd.c
@@ -492,7 +492,7 @@ const char *ntpd_version(void)
 {
     static char versionbuf[64];
     snprintf(versionbuf, sizeof(versionbuf),
-	     "%s-%s-%d %s", VCS_BASENAME, VERSION, VCS_TICK, VCS_DATE);
+	     "%s-%s+%d %s", VCS_BASENAME, VERSION, VCS_TICK, VCS_DATE);
     return versionbuf;
 }
 


=====================================
pylib/util.py
=====================================
--- a/pylib/util.py
+++ b/pylib/util.py
@@ -30,7 +30,7 @@ OLD_CTL_PST_SEL_SYNCCAND = 2
 OLD_CTL_PST_SEL_SYSPEER = 3
 
 def stdversion():
-    return "%s-%s-%s %s" % (ntp.version.VCS_BASENAME,
+    return "%s-%s+%s %s" % (ntp.version.VCS_BASENAME,
                             ntp.version.VERSION,
                             ntp.version.VCS_TICK,
                             ntp.version.VCS_DATE)



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/02217aa4c719c7bc06afd94975a8166796b26963
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20161228/25144124/attachment.html>


More information about the vc mailing list