[Git][NTPsec/ntpsec][master] Remove unused clock_codec variable tinker and associated #define.

Eric S. Raymond gitlab at mg.gitlab.com
Sun Jul 24 00:46:19 UTC 2016


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


Commits:
47a8b9a2 by Eric S. Raymond at 2016-07-23T20:45:13-04:00
Remove unused clock_codec variable tinker and associated #define.

- - - - -


3 changed files:

- include/ntp.h
- include/ntpd.h
- ntpd/ntp_loopfilter.c


Changes:

=====================================
include/ntp.h
=====================================
--- a/include/ntp.h
+++ b/include/ntp.h
@@ -628,9 +628,8 @@ struct pkt {
 #define LOOP_ALLAN		10	/* set minimum Allan intercept */
 #define LOOP_HUFFPUFF		11	/* set huff-n'-puff filter length */
 #define LOOP_FREQ		12	/* set initial frequency */
-#define LOOP_CODEC		13	/* set audio codec frequency */
-#define	LOOP_LEAP		14	/* insert leap after second 23:59 */
-#define	LOOP_TICK		15	/* sim. low precision clock */
+#define	LOOP_LEAP		13	/* insert leap after second 23:59 */
+#define	LOOP_TICK		14	/* sim. low precision clock */
 
 /*
  * Configuration items for the stats printer


=====================================
include/ntpd.h
=====================================
--- a/include/ntpd.h
+++ b/include/ntpd.h
@@ -336,7 +336,6 @@ extern double	clock_max_fwd;		/* max forward offset before step (s) */
 extern double	clock_panic;		/* max offset before panic (s) */
 extern double	clock_phi;		/* dispersion rate (s/s) */
 extern double	clock_minstep;		/* step timeout (s) */
-extern double	clock_codec;		/* codec frequency */
 #ifdef HAVE_KERNEL_PLL
 extern int	pll_status;		/* status bits for kernel pll */
 #endif /* HAVE_KERNEL_PLL */


=====================================
ntpd/ntp_loopfilter.c
=====================================
--- a/ntpd/ntp_loopfilter.c
+++ b/ntpd/ntp_loopfilter.c
@@ -113,7 +113,6 @@ double	clock_jitter;		/* offset jitter */
 double	drift_comp;		/* frequency (s/s) */
 static double init_drift_comp; /* initial frequency (PPM) */
 double	clock_stability;	/* frequency stability (wander) (s/s) */
-double	clock_codec;		/* audio codec frequency (samples/s) */
 static u_long clock_epoch;	/* last update */
 u_int	sys_tai;		/* TAI offset from UTC */
 static bool loop_started;	/* true after LOOP_DRIFTINIT */
@@ -1294,10 +1293,6 @@ loop_config(
 		allan_xpt = (uint8_t)freq;
 		break;
 
-	case LOOP_CODEC:	/* audio codec frequency (codec) */
-		clock_codec = freq / 1e6;
-		break;
-
 	case LOOP_PHI:		/* dispersion threshold (dispersion) */
 		clock_phi = freq / 1e6;
 		break;



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/47a8b9a2838b763f5274e506360fb4c869023539
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160724/9983b234/attachment.html>


More information about the vc mailing list