Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 6 Sep 2022 05:42:36 GMT
From:      Gordon Bergling <gbe@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: c84d562c3867 - stable/13 - netpfil: Fix a typo in a source code comment
Message-ID:  <202209060542.2865gaUt013643@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by gbe (doc committer):

URL: https://cgit.FreeBSD.org/src/commit/?id=c84d562c3867b186009f1302865d6623d44c48cc

commit c84d562c3867b186009f1302865d6623d44c48cc
Author:     Gordon Bergling <gbe@FreeBSD.org>
AuthorDate: 2022-09-03 17:18:54 +0000
Commit:     Gordon Bergling <gbe@FreeBSD.org>
CommitDate: 2022-09-06 05:39:25 +0000

    netpfil: Fix a typo in a source code comment
    
    - s/intergers/integers/
    
    While here, fix some whitespace issues.
---
 sys/netpfil/ipfw/dn_aqm_codel.c | 16 ++++++++--------
 1 file changed, 8 insertions(+), 8 deletions(-)

diff --git a/sys/netpfil/ipfw/dn_aqm_codel.c b/sys/netpfil/ipfw/dn_aqm_codel.c
index 79c6afd8b635..13d46137a620 100644
--- a/sys/netpfil/ipfw/dn_aqm_codel.c
+++ b/sys/netpfil/ipfw/dn_aqm_codel.c
@@ -139,7 +139,7 @@ SYSCTL_PROC(_net_inet_ip_dummynet_codel, OID_AUTO, interval,
  * http://betterexplained.com/articles/
  * 	understanding-quakes-fast-inverse-square-root/ 
  */
-aqm_time_t 
+aqm_time_t
 control_law(struct codel_status *cst, struct dn_aqm_codel_parms *cprms,
 	aqm_time_t t)
 {
@@ -156,10 +156,10 @@ control_law(struct codel_status *cst, struct dn_aqm_codel_parms *cprms,
 	}
 
 	/* newguess = g(1.5 - 0.5*c*g^2)
-	 * Multiplying both sides by 2 to make all the constants intergers
+	 * Multiplying both sides by 2 to make all the constants integers
 	 * newguess * 2  = g(3 - c*g^2) g=old guess, c=count
 	 * So, newguess = newguess /2
-	 * Fixed point operations are used here.  
+	 * Fixed point operations are used here.
 	 */
 
 	/* Calculate g^2 */
@@ -167,14 +167,14 @@ control_law(struct codel_status *cst, struct dn_aqm_codel_parms *cprms,
 	/* Calculate (3 - c*g^2) i.e. (3 - c * temp) */
 	temp = (3ULL<< (FIX_POINT_BITS*2)) - (count * temp);
 
-	/* 
-	 * Divide by 2 because we multiplied the original equation by two 
-	 * Also, we shift the result by 8 bits to prevent overflow. 
+	/*
+	 * Divide by 2 because we multiplied the original equation by two
+	 * Also, we shift the result by 8 bits to prevent overflow.
 	 * */
-	temp >>= (1 + 8); 
+	temp >>= (1 + 8);
 
 	/*  Now, temp = (1.5 - 0.5*c*g^2)
-	 * Calculate g (1.5 - 0.5*c*g^2) i.e. g * temp 
+	 * Calculate g (1.5 - 0.5*c*g^2) i.e. g * temp
 	 */
 	temp = (cst->isqrt * temp) >> (FIX_POINT_BITS + FIX_POINT_BITS - 8);
 	cst->isqrt = temp;



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202209060542.2865gaUt013643>