[Git][NTPsec/ntpsec][master] Remove dead code in dumbclock driver (almost certainly obsolete).

Eric S. Raymond gitlab at mg.gitlab.com
Sun Jun 12 15:19:57 UTC 2016


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


Commits:
a1f6b3a7 by Eric S. Raymond at 2016-06-12T11:19:36-04:00
Remove dead code in dumbclock driver (almost certainly obsolete).

- - - - -


1 changed file:

- ntpd/refclock_dumbclock.c


Changes:

=====================================
ntpd/refclock_dumbclock.c
=====================================
--- a/ntpd/refclock_dumbclock.c
+++ b/ntpd/refclock_dumbclock.c
@@ -74,9 +74,6 @@ struct dumbclock_unit {
 static	bool	dumbclock_start		(int, struct peer *);
 static	void	dumbclock_shutdown	(int, struct peer *);
 static	void	dumbclock_receive	(struct recvbuf *);
-#if 0
-static	void	dumbclock_poll		(int, struct peer *);
-#endif
 
 /*
  * Transfer vector
@@ -333,41 +330,3 @@ dumbclock_receive(
 	up->lasthour = (uint8_t)pp->hour;
 }
 
-#if 0
-/*
- * dumbclock_poll - called by the transmit procedure
- */
-static void
-dumbclock_poll(
-	int unit,
-	struct peer *peer
-	)
-{
-	register struct dumbclock_unit *up;
-	struct refclockproc *pp;
-	char pollchar;
-
-	/*
-	 * Time to poll the clock. The Chrono-log clock is supposed to
-	 * respond to a 'T' by returning a timecode in the format(s)
-	 * specified above.  Ours does (can?) not, but this seems to be
-	 * an installation-specific problem.  This code is dyked out,
-	 * but may be re-enabled if anyone ever finds a Chrono-log that
-	 * actually listens to this command.
-	 */
-#if 0
-	pp = peer->procptr;
-	up = pp->unitptr;
-	if (peer->reach == 0)
-		refclock_report(peer, CEVNT_TIMEOUT);
-	if (up->linect > 0)
-		pollchar = 'R';
-	else
-		pollchar = 'T';
-	if (write(pp->io.fd, &pollchar, 1) != 1)
-		refclock_report(peer, CEVNT_FAULT);
-	else
-		pp->polls++;
-#endif
-}
-#endif



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/a1f6b3a796f59a16402ff45387c13292e27d39ba
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20160612/1273f65a/attachment.html>


More information about the vc mailing list