Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/net bpf.c: fix a few typos and grammatical issues in com...



details:   https://anonhg.NetBSD.org/src/rev/bb4c8280aa3c
branches:  trunk
changeset: 373397:bb4c8280aa3c
user:      gutteridge <gutteridge%NetBSD.org@localhost>
date:      Tue Feb 07 01:46:37 2023 +0000

description:
bpf.c: fix a few typos and grammatical issues in comments

diffstat:

 sys/net/bpf.c |  12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diffs (54 lines):

diff -r 81a2f20c3a6d -r bb4c8280aa3c sys/net/bpf.c
--- a/sys/net/bpf.c     Tue Feb 07 01:17:41 2023 +0000
+++ b/sys/net/bpf.c     Tue Feb 07 01:46:37 2023 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: bpf.c,v 1.249 2022/11/30 06:02:37 ozaki-r Exp $        */
+/*     $NetBSD: bpf.c,v 1.250 2023/02/07 01:46:37 gutteridge Exp $     */
 
 /*
  * Copyright (c) 1990, 1991, 1993
@@ -39,7 +39,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: bpf.c,v 1.249 2022/11/30 06:02:37 ozaki-r Exp $");
+__KERNEL_RCSID(0, "$NetBSD: bpf.c,v 1.250 2023/02/07 01:46:37 gutteridge Exp $");
 
 #if defined(_KERNEL_OPT)
 #include "opt_bpf.h"
@@ -417,7 +417,7 @@
                }
        }
 
-       /* Insure the data is properly aligned */
+       /* Ensure the data is properly aligned */
        if (align > 0)
                m->m_data += align;
 
@@ -1759,7 +1759,7 @@
 
        /*
         * Craft on-stack mbuf suitable for passing to bpf_filter.
-        * Note that we cut corners here; we only setup what's
+        * Note that we cut corners here; we only set up what's
         * absolutely needed--this mbuf should never go anywhere else.
         */
        (void)memset(&mb, 0, sizeof(mb));
@@ -1834,7 +1834,7 @@
 /*
  * Put the SLIP pseudo-"link header" in place.
  * Note this M_PREPEND() should never fail,
- * swince we know we always have enough space
+ * since we know we always have enough space
  * in the input buffer.
  */
 static void
@@ -1985,7 +1985,7 @@
 
 /*
  * Move the packet data from interface memory (pkt) into the
- * store buffer. Call the wakeup functions if it's time to wakeup
+ * store buffer. Call the wakeup functions if it's time to wake up
  * a listener (buffer full), "cpfn" is the routine called to do the
  * actual data transfer. memcpy is passed in to copy contiguous chunks,
  * while bpf_mcpy is passed in to copy mbuf chains.  In the latter case,



Home | Main Index | Thread Index | Old Index