[ntpsec commit] Forward/port util/tg2.c. Build it and util/propdelay.c.

Eric S. Raymond esr at ntpsec.org
Wed Sep 30 16:06:40 UTC 2015


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

Author:    Eric S. Raymond <esr at thyrsus.com>
Date:      Wed Sep 30 12:06:03 2015 -0400

Forward/port util/tg2.c.  Build it and util/propdelay.c.

---

 util/tg2.c   | 2 --
 util/wscript | 3 ++-
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/util/tg2.c b/util/tg2.c
index 40c0534..5775f87 100644
--- a/util/tg2.c
+++ b/util/tg2.c
@@ -598,7 +598,6 @@ main(
 	char FormatCharacter = '3';		/* Default is IRIG-B with IEEE 1344 extensions */
 	char AsciiValue;
 	int	HexValue;
-	int	OldPtr = 0;
 	int FrameNumber = 0;
 
 	/* Time offset for IEEE 1344 indication. */
@@ -1526,7 +1525,6 @@ main(
 				printf("\nCode string: %s, ParityString = %s, ParitySum = 0x%2.2X, ParityValue = %d, DstFlag = %d...\n", code, ParityString, ParitySum, ParityValue, DstFlag);
 
 			ptr = strlen(code)-1;
-			OldPtr = 0;
 		}
 
 		/*
diff --git a/util/wscript b/util/wscript
index a22482a..d539712 100644
--- a/util/wscript
+++ b/util/wscript
@@ -26,7 +26,8 @@ def build(ctx):
 		install_path= "${PREFIX}/sbin/"
 	)
 
-	for name in ['hist', 'jitter', 'pps-api', 'precision', 'sht', 'testrs6000']:
+	for name in ['hist', 'jitter', 'pps-api', 'precision',
+	    	    	     'propdelay', 'sht', 'testrs6000', 'tg2']:
 		ctx(
 			target		= name,
 			features	= "c cprogram bld_include src_include libisc_include",



More information about the vc mailing list