]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
ntp: fix comments
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 10 Aug 2020 14:22:19 +0000 (16:22 +0200)
committerMiroslav Lichvar <mlichvar@redhat.com>
Thu, 13 Aug 2020 08:40:18 +0000 (10:40 +0200)
Fix typos and remove an obsolete comment.

ntp_core.c
ntp_sources.c

index 8c817a60b07b484b35256a475f954fe9b6901a99..c306b03e5a471840ffbd742030ab1b9b35ef75c5 100644 (file)
@@ -1017,12 +1017,8 @@ transmit_packet(NTP_Mode my_mode, /* The mode this machine wants to be */
  
   message.poll = my_poll;
   message.precision = precision;
-
-  /* If we're sending a client mode packet and we aren't synchronized yet, 
-     we might have to set up artificial values for some of these parameters */
   message.root_delay = UTI_DoubleToNtp32(our_root_delay);
   message.root_dispersion = UTI_DoubleToNtp32(our_root_dispersion);
-
   message.reference_id = htonl(our_ref_id);
 
   /* Now fill in timestamps */
@@ -2100,7 +2096,7 @@ NCR_ProcessRxUnknown(NTP_Remote_Address *remote_addr, NTP_Local_Address *local_a
   }
 
   /* If it is an NTPv4 packet with a long MAC and no extension fields,
-     respond with a NTPv3 packet to avoid breaking RFC 7822 and keep
+     respond with an NTPv3 packet to avoid breaking RFC 7822 and keep
      the length symmetric.  Otherwise, respond with the same version. */
   if (info.version == 4 && info.ext_fields == 0 && info.auth.mode == NTP_AUTH_SYMMETRIC &&
       info.auth.mac.length > NTP_MAX_V4_MAC_LENGTH)
index e015de78a05a4c69f95365cbb43e2ce1dd709a2c..b371d4448b09f11b61de4bdf685c2d0d5aaca625 100644 (file)
@@ -80,8 +80,8 @@ static uint32_t last_conf_id = 0;
 
 /* Source scheduled for name resolving (first resolving or replacement) */
 struct UnresolvedSource {
-  /* Current address of the source (IDADDR_ID is used for a single source
-     with unknown address and IPADDR_UNSPEC for a pool of sources */
+  /* Current address of the source (IPADDR_ID is used for a single source
+     with unknown address and IPADDR_UNSPEC for a pool of sources) */
   NTP_Remote_Address address;
   /* ID of the pool if not a single source */
   int pool_id;