summaryrefslogtreecommitdiffstats
path: root/usr.sbin/xntpd
diff options
context:
space:
mode:
authordanny <danny@FreeBSD.org>1999-01-12 19:38:55 +0000
committerdanny <danny@FreeBSD.org>1999-01-12 19:38:55 +0000
commitd7526586c0db533b0bb9d402b163bb8c1c9c409a (patch)
tree4e79bb811d3c8869434ea0f15e95639e93f3259a /usr.sbin/xntpd
parente3baab147a5a4449d245f7dbb19b8d6c6d1fb377 (diff)
downloadFreeBSD-src-d7526586c0db533b0bb9d402b163bb8c1c9c409a.zip
FreeBSD-src-d7526586c0db533b0bb9d402b163bb8c1c9c409a.tar.gz
Fix leap year comments. 2000 is a leap year, so code without a century-test
still works until 2100.
Diffstat (limited to 'usr.sbin/xntpd')
-rw-r--r--usr.sbin/xntpd/xntpd/refclock_acts.c4
-rw-r--r--usr.sbin/xntpd/xntpd/refclock_heath.c2
2 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/xntpd/xntpd/refclock_acts.c b/usr.sbin/xntpd/xntpd/refclock_acts.c
index 39ff433..ad3c33a 100644
--- a/usr.sbin/xntpd/xntpd/refclock_acts.c
+++ b/usr.sbin/xntpd/xntpd/refclock_acts.c
@@ -291,7 +291,7 @@ extern u_char sys_poll; /* log2 of system poll interval */
extern struct peer *sys_peer; /* system peer structure pointer */
/*
- * Tables to compute the ddd of year form icky dd/mm timecode. Viva la
+ * Tables to compute the ddd of year from icky dd/mm timecode. Viva la
* leap.
*/
static day1tab[] = {31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31};
@@ -581,7 +581,7 @@ acts_receive(rbufp)
(void)write(pp->io.fd, &flag, 1);
/*
- * Yes, I know this code incorrectly thinks that 2000 is a leap
+ * Yes, I know this code incorrectly thinks that 2100 is a leap
* year. The ACTS timecode format croaks then anyway. Life is
* short. Would only the timecode mavens resist the urge to
* express months of the year and days of the month in favor of
diff --git a/usr.sbin/xntpd/xntpd/refclock_heath.c b/usr.sbin/xntpd/xntpd/refclock_heath.c
index a1b602c..6f2899d 100644
--- a/usr.sbin/xntpd/xntpd/refclock_heath.c
+++ b/usr.sbin/xntpd/xntpd/refclock_heath.c
@@ -297,7 +297,7 @@ heath_receive(rbufp)
* be avoided if the engineers had been required to write a
* device driver before finalizing the timecode format.
*
- * Yes, I know this code incorrectly thinks that 2000 is a leap
+ * Yes, I know this code incorrectly thinks that 2100 is a leap
* year; but, the latest year that can be set by the DIPswitches
* is 1997 anyay. Life is short.
*/
OpenPOWER on IntegriCloud