[ntpsec commit] Fix illegally long REFID in the dumbclock driver.

Eric S. Raymond esr at ntpsec.org
Sun Oct 4 02:31:50 UTC 2015


Module:    ntpsec
Branch:    master
Commit:    9504cb79cc8c80421213587e89c8cfa571b2268e
Changeset: http://git.ntpsec.org/ntpsec/commit/?id=9504cb79cc8c80421213587e89c8cfa571b2268e

Author:    Eric S. Raymond <esr at thyrsus.com>
Date:      Sat Oct  3 19:16:58 2015 -0400

Fix illegally long REFID in the dumbclock driver.

I don't think anyone has run this code in a *long* time.

---

 ntpd/refclock_dumbclock.c | 9 +++++----
 1 file changed, 5 insertions(+), 4 deletions(-)

diff --git a/ntpd/refclock_dumbclock.c b/ntpd/refclock_dumbclock.c
index d5b147b..3fe4b0a 100644
--- a/ntpd/refclock_dumbclock.c
+++ b/ntpd/refclock_dumbclock.c
@@ -45,14 +45,15 @@ extern int async_write(int, const void *, unsigned int);
 #define	DEVICE		"/dev/dumbclock%d" /* device name and unit */
 #define	SPEED232	B9600	/* uart speed (9600 baud) */
 #define	PRECISION	(-13)	/* precision assumed (about 100 us) */
-#define	REFID		"dumbclock"	/* reference ID */
+#define	REFID		"DUMB"	/* reference ID */
 #define	DESCRIPTION	"Dumb clock" /* WRU */
 
 
 /*
- * Insanity check.  Since the time is local, we need to make sure that during midnight
- * transitions, we can convert back to Unix time.  If the conversion results in some number
- * worse than this number of seconds away, assume the next day and retry.
+ * Insanity check.  Since the time is local, we need to make sure that
+ * during midnight transitions, we can convert back to Unix time.  If
+ * the conversion results in some number worse than this number of
+ * seconds away, assume the next day and retry.
  */
 #define INSANE_SECONDS 3600
 



More information about the vc mailing list