summaryrefslogtreecommitdiff
path: root/usr.sbin/ldpd/util.c
diff options
context:
space:
mode:
authorJason McIntyre <jmc@cvs.openbsd.org>2022-12-28 21:30:20 +0000
committerJason McIntyre <jmc@cvs.openbsd.org>2022-12-28 21:30:20 +0000
commit30c6e2bff10bcc21f60c21eb9d29068c6790aed4 (patch)
tree160b7cd24896186ded48d98dd67e701b7f1c7ff2 /usr.sbin/ldpd/util.c
parent6d982a342f98d6530a0f71d5f67313d5f2a07382 (diff)
spelling fixes; from paul tagliamonte
any parts of his diff not taken are noted on tech
Diffstat (limited to 'usr.sbin/ldpd/util.c')
-rw-r--r--usr.sbin/ldpd/util.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/ldpd/util.c b/usr.sbin/ldpd/util.c
index 25c1cbed9d7..c3968df80bb 100644
--- a/usr.sbin/ldpd/util.c
+++ b/usr.sbin/ldpd/util.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: util.c,v 1.6 2022/05/06 15:51:09 claudio Exp $ */
+/* $OpenBSD: util.c,v 1.7 2022/12/28 21:30:17 jmc Exp $ */
/*
* Copyright (c) 2015 Renato Westphal <renato@openbsd.org>
@@ -41,7 +41,7 @@ mask2prefixlen6(struct sockaddr_in6 *sa_in6)
uint8_t *ap, *ep;
/*
- * sin6_len is the size of the sockaddr so substract the offset of
+ * sin6_len is the size of the sockaddr so subtract the offset of
* the possibly truncated sin6_addr struct.
*/
ap = (uint8_t *)&sa_in6->sin6_addr;
@@ -264,7 +264,7 @@ embedscope(struct sockaddr_in6 *sin6)
if (IN6_IS_SCOPE_EMBED(&sin6->sin6_addr)) {
memcpy(&tmp16, &sin6->sin6_addr.s6_addr[2], sizeof(tmp16));
if (tmp16 != 0) {
- log_warnx("%s: address %s already has embeded scope %u",
+ log_warnx("%s: address %s already has embedded scope %u",
__func__, log_sockaddr(sin6), ntohs(tmp16));
}
tmp16 = htons(sin6->sin6_scope_id);