summaryrefslogtreecommitdiff
path: root/lib/libpcap
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2022-12-27 17:10:09 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2022-12-27 17:10:09 +0000
commitcc3a47abb42f11b78ad97db92e7a89b9447bb8e9 (patch)
treefe9b394da058363f4a89f71cc700d1ff82eaa856 /lib/libpcap
parent3ee00b1421bdff3725c44ae16607a768ffaadb02 (diff)
spelling fixes; from paul tagliamonte
any changes not taken noted on tech, but chiefly here i did not take the cancelation - cancellation changes;
Diffstat (limited to 'lib/libpcap')
-rw-r--r--lib/libpcap/fad-getad.c2
-rw-r--r--lib/libpcap/gencode.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/lib/libpcap/fad-getad.c b/lib/libpcap/fad-getad.c
index 829381a3081..b5b2bad31e1 100644
--- a/lib/libpcap/fad-getad.c
+++ b/lib/libpcap/fad-getad.c
@@ -101,7 +101,7 @@ add_or_find_if(pcap_if_t **curdev_ret, pcap_if_t **alldevs, const char *name,
* but that don't support packet capture aren't included
* in the list. An example of this is loopback interfaces
* on Solaris; we don't just omit loopback interfaces
- * becaue you *can* capture on loopback interfaces on some
+ * because you *can* capture on loopback interfaces on some
* OSes.
*/
p = pcap_open_live(name, 68, 0, 0, errbuf);
diff --git a/lib/libpcap/gencode.c b/lib/libpcap/gencode.c
index d8005da4893..e5f5d33423c 100644
--- a/lib/libpcap/gencode.c
+++ b/lib/libpcap/gencode.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: gencode.c,v 1.63 2022/05/28 03:20:33 deraadt Exp $ */
+/* $OpenBSD: gencode.c,v 1.64 2022/12/27 17:10:07 jmc Exp $ */
/*
* Copyright (c) 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998
@@ -1625,7 +1625,7 @@ iphl_to_x(void)
tmp->s.k = 2;
sappend(s, tmp);
- /* A = A + X (add off_nl again to compansate) */
+ /* A = A + X (add off_nl again to compensate) */
sappend(s, new_stmt(BPF_ALU|BPF_ADD|BPF_X));
/* MEM[iphl_reg] = A */