[Git][NTPsec/ntpsec][master] Fix archaisms in comments from thera of 32-bit longs and WWVB radios.

Eric S. Raymond gitlab at mg.gitlab.com
Thu Dec 3 18:16:09 UTC 2015


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


Commits:
6b143a81 by Eric S. Raymond at 2015-12-03T13:14:58Z
Fix archaisms in comments from thera of 32-bit longs and WWVB radios.

- - - - -


2 changed files:

- include/ntp_fp.h
- ntpd/ntp_refclock.c


Changes:

=====================================
include/ntp_fp.h
=====================================
--- a/include/ntp_fp.h
+++ b/include/ntp_fp.h
@@ -9,7 +9,7 @@
 
 /*
  * NTP uses two fixed point formats.  The first (l_fp) is the "long"
- * format and is 64 bits long with the decimal between bits 31 and 32.
+ * format and is 64 bits wide with the decimal between bits 31 and 32.
  * This is used for time stamps in the NTP packet header (in network
  * byte order) and for internal computations of offsets (in local host
  * byte order). We use the same structure for both signed and unsigned
@@ -40,7 +40,7 @@ typedef struct {
 
 /*
  * Fractional precision (of an l_fp) is actually the number of
- * bits in a long.
+ * bits in an int32_t/uint32_t.
  */
 #define	FRACTION_PREC	(32)
 
@@ -65,7 +65,7 @@ typedef int32_t s_fp;
 typedef uint32_t u_fp;
 
 /*
- * A unit second in fp format.	Actually 2**(half_the_bits_in_a_long)
+ * A unit second in fp format.	Actually 2**(half_the_bits_in_int32)
  */
 #define	FP_SECOND	(0x10000)
 


=====================================
ntpd/ntp_refclock.c
=====================================
--- a/ntpd/ntp_refclock.c
+++ b/ntpd/ntp_refclock.c
@@ -508,7 +508,7 @@ refclock_sample(
  * This routine simulates the NTP receive and packet procedures for a
  * reference clock. This provides a mechanism in which the ordinary NTP
  * filter, selection and combining algorithms can be used to suppress
- * misbehaving radios and to mitigate between them when more than one is
+ * misbehaving time sources and to mitigate between them when more than one is
  * available for backup.
  */
 void



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/6b143a81b1e732148aa1210f2ec71cb4d4f3fcd3
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20151203/3228131f/attachment.html>


More information about the vc mailing list