summaryrefslogtreecommitdiff
path: root/src/lib/libc/net
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/libc/net')
-rw-r--r--src/lib/libc/net/inet_net_pton.c4
-rw-r--r--src/lib/libc/net/res_comp.c4
-rw-r--r--src/lib/libc/net/res_random.c4
-rw-r--r--src/lib/libc/net/rthdr.c4
-rw-r--r--src/lib/libc/net/ruserok.c2
5 files changed, 9 insertions, 9 deletions
diff --git a/src/lib/libc/net/inet_net_pton.c b/src/lib/libc/net/inet_net_pton.c
index f9c6e7334b..c5baa4d6f4 100644
--- a/src/lib/libc/net/inet_net_pton.c
+++ b/src/lib/libc/net/inet_net_pton.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: inet_net_pton.c,v 1.13 2022/04/13 22:17:33 millert Exp $ */ 1/* $OpenBSD: inet_net_pton.c,v 1.14 2022/12/27 17:10:06 jmc Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 2012 by Gilles Chehade <gilles@openbsd.org> 4 * Copyright (c) 2012 by Gilles Chehade <gilles@openbsd.org>
@@ -161,7 +161,7 @@ inet_net_pton_ipv4(const char *src, u_char *dst, size_t size)
161 goto enoent; 161 goto enoent;
162 } 162 }
163 163
164 /* Firey death and destruction unless we prefetched EOS. */ 164 /* Fiery death and destruction unless we prefetched EOS. */
165 if (ch != '\0') 165 if (ch != '\0')
166 goto enoent; 166 goto enoent;
167 167
diff --git a/src/lib/libc/net/res_comp.c b/src/lib/libc/net/res_comp.c
index 41a1c9771a..7ccd44ad8d 100644
--- a/src/lib/libc/net/res_comp.c
+++ b/src/lib/libc/net/res_comp.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: res_comp.c,v 1.21 2022/11/16 18:30:12 florian Exp $ */ 1/* $OpenBSD: res_comp.c,v 1.22 2022/12/27 17:10:06 jmc Exp $ */
2 2
3/* 3/*
4 * ++Copyright++ 1985, 1993 4 * ++Copyright++ 1985, 1993
@@ -149,7 +149,7 @@ DEF_WEAK(dn_expand);
149 * 'length' is the size of the array pointed to by 'comp_dn'. 149 * 'length' is the size of the array pointed to by 'comp_dn'.
150 * 'dnptrs' is a list of pointers to previous compressed names. dnptrs[0] 150 * 'dnptrs' is a list of pointers to previous compressed names. dnptrs[0]
151 * is a pointer to the beginning of the message. The list ends with NULL. 151 * is a pointer to the beginning of the message. The list ends with NULL.
152 * 'lastdnptr' is a pointer to the end of the arrary pointed to 152 * 'lastdnptr' is a pointer to the end of the array pointed to
153 * by 'dnptrs'. Side effect is to update the list of pointers for 153 * by 'dnptrs'. Side effect is to update the list of pointers for
154 * labels inserted into the message as we compress the name. 154 * labels inserted into the message as we compress the name.
155 * If 'dnptr' is NULL, we don't try to compress names. If 'lastdnptr' 155 * If 'dnptr' is NULL, we don't try to compress names. If 'lastdnptr'
diff --git a/src/lib/libc/net/res_random.c b/src/lib/libc/net/res_random.c
index b7036815c9..3f642a138c 100644
--- a/src/lib/libc/net/res_random.c
+++ b/src/lib/libc/net/res_random.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: res_random.c,v 1.25 2020/07/06 13:33:06 pirofti Exp $ */ 1/* $OpenBSD: res_random.c,v 1.26 2022/12/27 17:10:06 jmc Exp $ */
2 2
3/* 3/*
4 * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de> 4 * Copyright 1997 Niels Provos <provos@physnet.uni-hamburg.de>
@@ -70,7 +70,7 @@
70 70
71#include "thread_private.h" 71#include "thread_private.h"
72 72
73#define RU_OUT 180 /* Time after wich will be reseeded */ 73#define RU_OUT 180 /* Time after which will be reseeded */
74#define RU_MAX 30000 /* Uniq cycle, avoid blackjack prediction */ 74#define RU_MAX 30000 /* Uniq cycle, avoid blackjack prediction */
75#define RU_GEN 2 /* Starting generator */ 75#define RU_GEN 2 /* Starting generator */
76#define RU_N 32749 /* RU_N-1 = 2*2*3*2729 */ 76#define RU_N 32749 /* RU_N-1 = 2*2*3*2729 */
diff --git a/src/lib/libc/net/rthdr.c b/src/lib/libc/net/rthdr.c
index 934a55155a..5ffb13fc87 100644
--- a/src/lib/libc/net/rthdr.c
+++ b/src/lib/libc/net/rthdr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: rthdr.c,v 1.12 2016/09/21 04:38:56 guenther Exp $ */ 1/* $OpenBSD: rthdr.c,v 1.13 2022/12/27 17:10:06 jmc Exp $ */
2/* $KAME: rthdr.c,v 1.22 2006/02/09 08:18:58 keiichi Exp $ */ 2/* $KAME: rthdr.c,v 1.22 2006/02/09 08:18:58 keiichi Exp $ */
3 3
4/* 4/*
@@ -50,7 +50,7 @@ inet6_rth_space(int type, int segments)
50 case IPV6_RTHDR_TYPE_0: 50 case IPV6_RTHDR_TYPE_0:
51 return (((segments * 2) + 1) << 3); 51 return (((segments * 2) + 1) << 3);
52 default: 52 default:
53 return (0); /* type not suppported */ 53 return (0); /* type not supported */
54 } 54 }
55} 55}
56DEF_WEAK(inet6_rth_space); 56DEF_WEAK(inet6_rth_space);
diff --git a/src/lib/libc/net/ruserok.c b/src/lib/libc/net/ruserok.c
index a399c013e2..291c702060 100644
--- a/src/lib/libc/net/ruserok.c
+++ b/src/lib/libc/net/ruserok.c
@@ -384,7 +384,7 @@ __gethostloop(struct sockaddr *raddr, socklen_t salen)
384 } 384 }
385 385
386 /* 386 /*
387 * either the DNS adminstrator has made a configuration 387 * either the DNS administrator has made a configuration
388 * mistake, or someone has attempted to spoof us 388 * mistake, or someone has attempted to spoof us
389 */ 389 */
390 freeaddrinfo(res); 390 freeaddrinfo(res);