git: 34f620f1d0cf - main - Fix a few typos in source code comments

Gordon Bergling gbe at FreeBSD.org
Sat Aug 14 07:40:07 UTC 2021


The branch main has been updated by gbe (doc committer):

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

commit 34f620f1d0cfa67f5987452ac3fdd8c113b6b099
Author:     Gordon Bergling <gbe at FreeBSD.org>
AuthorDate: 2021-08-14 07:39:17 +0000
Commit:     Gordon Bergling <gbe at FreeBSD.org>
CommitDate: 2021-08-14 07:39:17 +0000

    Fix a few typos in source code comments
    
    - s/posbile/possible/
    
    MFC after:      5 days
---
 sys/cam/scsi/scsi_all.c                        | 2 +-
 sys/netgraph/ng_base.c                         | 2 +-
 tools/regression/netinet/ipsockopt/ipsockopt.c | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys/cam/scsi/scsi_all.c b/sys/cam/scsi/scsi_all.c
index 5a50d5bb134b..729a2a06e616 100644
--- a/sys/cam/scsi/scsi_all.c
+++ b/sys/cam/scsi/scsi_all.c
@@ -9150,7 +9150,7 @@ scsi_devid_match(uint8_t *lhs, size_t lhs_len, uint8_t *rhs, size_t rhs_len)
 	rhs_end = rhs + rhs_len;
 
 	/*
-	 * rhs_last and lhs_last are the last posible position of a valid
+	 * rhs_last and lhs_last are the last possible position of a valid
 	 * descriptor assuming it had a zero length identifier.  We use
 	 * these variables to insure we can safely dereference the length
 	 * field in our loop termination tests.
diff --git a/sys/netgraph/ng_base.c b/sys/netgraph/ng_base.c
index ae179cf13a45..ba60acb53502 100644
--- a/sys/netgraph/ng_base.c
+++ b/sys/netgraph/ng_base.c
@@ -3454,7 +3454,7 @@ ngthread(void *arg)
 
 /*
  * XXX
- * It's posible that a debugging NG_NODE_REF may need
+ * It's possible that a debugging NG_NODE_REF may need
  * to be outside the mutex zone
  */
 static void
diff --git a/tools/regression/netinet/ipsockopt/ipsockopt.c b/tools/regression/netinet/ipsockopt/ipsockopt.c
index d03ddf652f42..16805b9e6412 100644
--- a/tools/regression/netinet/ipsockopt/ipsockopt.c
+++ b/tools/regression/netinet/ipsockopt/ipsockopt.c
@@ -163,7 +163,7 @@ test_ip_options(int sock, const char *socktypename)
 		    "returned %d bytes of data", socktypename, len);
 
 	/*
-	 * One posible failure mode is that the call succeeds but neglects to
+	 * One possible failure mode is that the call succeeds but neglects to
 	 * copy out the data.
  	 */
 	if (test_options[0] == TEST_MAGIC)


More information about the dev-commits-src-all mailing list