diff options
Diffstat (limited to 'src/lib/libc/net')
-rw-r--r-- | src/lib/libc/net/getaddrinfo.c | 44 | ||||
-rw-r--r-- | src/lib/libc/net/gethostnamadr.c | 5 | ||||
-rw-r--r-- | src/lib/libc/net/getnameinfo.c | 6 | ||||
-rw-r--r-- | src/lib/libc/net/inet_net_ntop.c | 7 | ||||
-rw-r--r-- | src/lib/libc/net/inet_net_pton.c | 7 | ||||
-rw-r--r-- | src/lib/libc/net/rcmd.c | 6 | ||||
-rw-r--r-- | src/lib/libc/net/res_comp.c | 7 |
7 files changed, 38 insertions, 44 deletions
diff --git a/src/lib/libc/net/getaddrinfo.c b/src/lib/libc/net/getaddrinfo.c index 72183d260b..d16900b4a0 100644 --- a/src/lib/libc/net/getaddrinfo.c +++ b/src/lib/libc/net/getaddrinfo.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: getaddrinfo.c,v 1.32 2002/02/16 21:27:23 millert Exp $ */ | 1 | /* $OpenBSD: getaddrinfo.c,v 1.33 2002/02/17 19:42:23 millert Exp $ */ |
2 | /* $KAME: getaddrinfo.c,v 1.31 2000/08/31 17:36:43 itojun Exp $ */ | 2 | /* $KAME: getaddrinfo.c,v 1.31 2000/08/31 17:36:43 itojun Exp $ */ |
3 | 3 | ||
4 | /* | 4 | /* |
@@ -200,18 +200,18 @@ struct res_target { | |||
200 | }; | 200 | }; |
201 | 201 | ||
202 | static int str_isnumber(const char *); | 202 | static int str_isnumber(const char *); |
203 | static int explore_fqdn __P((const struct addrinfo *, const char *, | 203 | static int explore_fqdn(const struct addrinfo *, const char *, |
204 | const char *, struct addrinfo **)); | 204 | const char *, struct addrinfo **); |
205 | static int explore_null __P((const struct addrinfo *, | 205 | static int explore_null(const struct addrinfo *, |
206 | const char *, struct addrinfo **)); | 206 | const char *, struct addrinfo **); |
207 | static int explore_numeric __P((const struct addrinfo *, const char *, | 207 | static int explore_numeric(const struct addrinfo *, const char *, |
208 | const char *, struct addrinfo **)); | 208 | const char *, struct addrinfo **); |
209 | static int explore_numeric_scope __P((const struct addrinfo *, const char *, | 209 | static int explore_numeric_scope(const struct addrinfo *, const char *, |
210 | const char *, struct addrinfo **)); | 210 | const char *, struct addrinfo **); |
211 | static int get_canonname __P((const struct addrinfo *, | 211 | static int get_canonname(const struct addrinfo *, |
212 | struct addrinfo *, const char *)); | 212 | struct addrinfo *, const char *); |
213 | static struct addrinfo *get_ai __P((const struct addrinfo *, | 213 | static struct addrinfo *get_ai(const struct addrinfo *, |
214 | const struct afd *, const char *)); | 214 | const struct afd *, const char *); |
215 | static int get_portmatch(const struct addrinfo *, const char *); | 215 | static int get_portmatch(const struct addrinfo *, const char *); |
216 | static int get_port(struct addrinfo *, const char *, int); | 216 | static int get_port(struct addrinfo *, const char *, int); |
217 | static const struct afd *find_afd(int); | 217 | static const struct afd *find_afd(int); |
@@ -225,23 +225,21 @@ static int ip6_str2scopeid(char *, struct sockaddr_in6 *); | |||
225 | static void _sethtent(void); | 225 | static void _sethtent(void); |
226 | static void _endhtent(void); | 226 | static void _endhtent(void); |
227 | static struct addrinfo * _gethtent(const char *, const struct addrinfo *); | 227 | static struct addrinfo * _gethtent(const char *, const struct addrinfo *); |
228 | static struct addrinfo *_files_getaddrinfo __P((const char *, | 228 | static struct addrinfo *_files_getaddrinfo(const char *, |
229 | const struct addrinfo *)); | 229 | const struct addrinfo *); |
230 | 230 | ||
231 | #ifdef YP | 231 | #ifdef YP |
232 | static struct addrinfo *_yphostent(char *, const struct addrinfo *); | 232 | static struct addrinfo *_yphostent(char *, const struct addrinfo *); |
233 | static struct addrinfo *_yp_getaddrinfo __P((const char *, | 233 | static struct addrinfo *_yp_getaddrinfo(const char *, |
234 | const struct addrinfo *)); | 234 | const struct addrinfo *); |
235 | #endif | 235 | #endif |
236 | 236 | ||
237 | static struct addrinfo *getanswer __P((const querybuf *, int, const char *, int, | 237 | static struct addrinfo *getanswer(const querybuf *, int, const char *, int, |
238 | const struct addrinfo *)); | 238 | const struct addrinfo *); |
239 | static int res_queryN(const char *, struct res_target *); | 239 | static int res_queryN(const char *, struct res_target *); |
240 | static int res_searchN(const char *, struct res_target *); | 240 | static int res_searchN(const char *, struct res_target *); |
241 | static int res_querydomainN __P((const char *, const char *, | 241 | static int res_querydomainN(const char *, const char *, struct res_target *); |
242 | struct res_target *)); | 242 | static struct addrinfo *_dns_getaddrinfo(const char *, const struct addrinfo *); |
243 | static struct addrinfo *_dns_getaddrinfo __P((const char *, | ||
244 | const struct addrinfo *)); | ||
245 | 243 | ||
246 | 244 | ||
247 | /* XXX macros that make external reference is BAD. */ | 245 | /* XXX macros that make external reference is BAD. */ |
diff --git a/src/lib/libc/net/gethostnamadr.c b/src/lib/libc/net/gethostnamadr.c index d4e3c5e6f0..9061caf0c2 100644 --- a/src/lib/libc/net/gethostnamadr.c +++ b/src/lib/libc/net/gethostnamadr.c | |||
@@ -52,7 +52,7 @@ | |||
52 | */ | 52 | */ |
53 | 53 | ||
54 | #if defined(LIBC_SCCS) && !defined(lint) | 54 | #if defined(LIBC_SCCS) && !defined(lint) |
55 | static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.44 2002/02/16 21:27:23 millert Exp $"; | 55 | static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.45 2002/02/17 19:42:23 millert Exp $"; |
56 | #endif /* LIBC_SCCS and not lint */ | 56 | #endif /* LIBC_SCCS and not lint */ |
57 | 57 | ||
58 | #include <sys/param.h> | 58 | #include <sys/param.h> |
@@ -126,8 +126,7 @@ typedef union { | |||
126 | char ac; | 126 | char ac; |
127 | } align; | 127 | } align; |
128 | 128 | ||
129 | static struct hostent *getanswer __P((const querybuf *, int, const char *, | 129 | static struct hostent *getanswer(const querybuf *, int, const char *, int); |
130 | int)); | ||
131 | 130 | ||
132 | extern int h_errno; | 131 | extern int h_errno; |
133 | 132 | ||
diff --git a/src/lib/libc/net/getnameinfo.c b/src/lib/libc/net/getnameinfo.c index c19603f2d1..15dc9dcdea 100644 --- a/src/lib/libc/net/getnameinfo.c +++ b/src/lib/libc/net/getnameinfo.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: getnameinfo.c,v 1.22 2002/02/16 21:27:23 millert Exp $ */ | 1 | /* $OpenBSD: getnameinfo.c,v 1.23 2002/02/17 19:42:23 millert Exp $ */ |
2 | /* $KAME: getnameinfo.c,v 1.45 2000/09/25 22:43:56 itojun Exp $ */ | 2 | /* $KAME: getnameinfo.c,v 1.45 2000/09/25 22:43:56 itojun Exp $ */ |
3 | 3 | ||
4 | /* | 4 | /* |
@@ -81,8 +81,8 @@ struct sockinet { | |||
81 | }; | 81 | }; |
82 | 82 | ||
83 | #ifdef INET6 | 83 | #ifdef INET6 |
84 | static int ip6_parsenumeric __P((const struct sockaddr *, const char *, char *, | 84 | static int ip6_parsenumeric(const struct sockaddr *, const char *, char *, |
85 | size_t, int)); | 85 | size_t, int); |
86 | static int ip6_sa2str(const struct sockaddr_in6 *, char *, size_t, int); | 86 | static int ip6_sa2str(const struct sockaddr_in6 *, char *, size_t, int); |
87 | #endif | 87 | #endif |
88 | 88 | ||
diff --git a/src/lib/libc/net/inet_net_ntop.c b/src/lib/libc/net/inet_net_ntop.c index 943ec44550..f5cb588d10 100644 --- a/src/lib/libc/net/inet_net_ntop.c +++ b/src/lib/libc/net/inet_net_ntop.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: inet_net_ntop.c,v 1.1 1997/03/13 19:07:30 downsj Exp $ */ | 1 | /* $OpenBSD: inet_net_ntop.c,v 1.2 2002/02/17 19:42:23 millert Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 1996 by Internet Software Consortium. | 4 | * Copyright (c) 1996 by Internet Software Consortium. |
@@ -21,7 +21,7 @@ | |||
21 | #if 0 | 21 | #if 0 |
22 | static const char rcsid[] = "$From: inet_net_ntop.c,v 8.2 1996/08/08 06:54:44 vixie Exp $"; | 22 | static const char rcsid[] = "$From: inet_net_ntop.c,v 8.2 1996/08/08 06:54:44 vixie Exp $"; |
23 | #else | 23 | #else |
24 | static const char rcsid[] = "$OpenBSD: inet_net_ntop.c,v 1.1 1997/03/13 19:07:30 downsj Exp $"; | 24 | static const char rcsid[] = "$OpenBSD: inet_net_ntop.c,v 1.2 2002/02/17 19:42:23 millert Exp $"; |
25 | #endif | 25 | #endif |
26 | #endif | 26 | #endif |
27 | 27 | ||
@@ -35,8 +35,7 @@ static const char rcsid[] = "$OpenBSD: inet_net_ntop.c,v 1.1 1997/03/13 19:07:30 | |||
35 | #include <string.h> | 35 | #include <string.h> |
36 | #include <stdlib.h> | 36 | #include <stdlib.h> |
37 | 37 | ||
38 | static char * inet_net_ntop_ipv4 __P((const u_char *src, int bits, | 38 | static char *inet_net_ntop_ipv4(const u_char *, int, char *, size_t); |
39 | char *dst, size_t size)); | ||
40 | 39 | ||
41 | /* | 40 | /* |
42 | * char * | 41 | * char * |
diff --git a/src/lib/libc/net/inet_net_pton.c b/src/lib/libc/net/inet_net_pton.c index b529e83664..932531eb5d 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.1 1997/03/13 19:07:30 downsj Exp $ */ | 1 | /* $OpenBSD: inet_net_pton.c,v 1.2 2002/02/17 19:42:23 millert Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 1996 by Internet Software Consortium. | 4 | * Copyright (c) 1996 by Internet Software Consortium. |
@@ -21,7 +21,7 @@ | |||
21 | #if 0 | 21 | #if 0 |
22 | static const char rcsid[] = "$From: inet_net_pton.c,v 8.3 1996/11/11 06:36:52 vixie Exp $"; | 22 | static const char rcsid[] = "$From: inet_net_pton.c,v 8.3 1996/11/11 06:36:52 vixie Exp $"; |
23 | #else | 23 | #else |
24 | static const char rcsid[] = "$OpenBSD: inet_net_pton.c,v 1.1 1997/03/13 19:07:30 downsj Exp $"; | 24 | static const char rcsid[] = "$OpenBSD: inet_net_pton.c,v 1.2 2002/02/17 19:42:23 millert Exp $"; |
25 | #endif | 25 | #endif |
26 | #endif | 26 | #endif |
27 | 27 | ||
@@ -37,8 +37,7 @@ static const char rcsid[] = "$OpenBSD: inet_net_pton.c,v 1.1 1997/03/13 19:07:30 | |||
37 | #include <string.h> | 37 | #include <string.h> |
38 | #include <stdlib.h> | 38 | #include <stdlib.h> |
39 | 39 | ||
40 | static int inet_net_pton_ipv4 __P((const char *src, u_char *dst, | 40 | static int inet_net_pton_ipv4(const char *, u_char *, size_t); |
41 | size_t size)); | ||
42 | 41 | ||
43 | /* | 42 | /* |
44 | * static int | 43 | * static int |
diff --git a/src/lib/libc/net/rcmd.c b/src/lib/libc/net/rcmd.c index 95d481a7f6..143b667ba8 100644 --- a/src/lib/libc/net/rcmd.c +++ b/src/lib/libc/net/rcmd.c | |||
@@ -34,7 +34,7 @@ | |||
34 | */ | 34 | */ |
35 | 35 | ||
36 | #if defined(LIBC_SCCS) && !defined(lint) | 36 | #if defined(LIBC_SCCS) && !defined(lint) |
37 | static char *rcsid = "$OpenBSD: rcmd.c,v 1.40 2002/02/16 21:27:23 millert Exp $"; | 37 | static char *rcsid = "$OpenBSD: rcmd.c,v 1.41 2002/02/17 19:42:23 millert Exp $"; |
38 | #endif /* LIBC_SCCS and not lint */ | 38 | #endif /* LIBC_SCCS and not lint */ |
39 | 39 | ||
40 | #include <sys/param.h> | 40 | #include <sys/param.h> |
@@ -58,8 +58,8 @@ static char *rcsid = "$OpenBSD: rcmd.c,v 1.40 2002/02/16 21:27:23 millert Exp $" | |||
58 | #include <netgroup.h> | 58 | #include <netgroup.h> |
59 | 59 | ||
60 | int __ivaliduser(FILE *, in_addr_t, const char *, const char *); | 60 | int __ivaliduser(FILE *, in_addr_t, const char *, const char *); |
61 | int __ivaliduser_sa __P((FILE *, struct sockaddr *, socklen_t, | 61 | int __ivaliduser_sa(FILE *, struct sockaddr *, socklen_t, |
62 | const char *, const char *)); | 62 | const char *, const char *); |
63 | static int __icheckhost(struct sockaddr *, socklen_t, const char *); | 63 | static int __icheckhost(struct sockaddr *, socklen_t, const char *); |
64 | static char *__gethostloop(struct sockaddr *, socklen_t); | 64 | static char *__gethostloop(struct sockaddr *, socklen_t); |
65 | 65 | ||
diff --git a/src/lib/libc/net/res_comp.c b/src/lib/libc/net/res_comp.c index f7a0358967..948923cf37 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.8 1997/07/09 01:08:49 millert Exp $ */ | 1 | /* $OpenBSD: res_comp.c,v 1.9 2002/02/17 19:42:23 millert Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * ++Copyright++ 1985, 1993 | 4 | * ++Copyright++ 1985, 1993 |
@@ -60,7 +60,7 @@ | |||
60 | static char sccsid[] = "@(#)res_comp.c 8.1 (Berkeley) 6/4/93"; | 60 | static char sccsid[] = "@(#)res_comp.c 8.1 (Berkeley) 6/4/93"; |
61 | static char rcsid[] = "$From: res_comp.c,v 8.11 1996/12/02 09:17:22 vixie Exp $"; | 61 | static char rcsid[] = "$From: res_comp.c,v 8.11 1996/12/02 09:17:22 vixie Exp $"; |
62 | #else | 62 | #else |
63 | static char rcsid[] = "$OpenBSD: res_comp.c,v 1.8 1997/07/09 01:08:49 millert Exp $"; | 63 | static char rcsid[] = "$OpenBSD: res_comp.c,v 1.9 2002/02/17 19:42:23 millert Exp $"; |
64 | #endif | 64 | #endif |
65 | #endif /* LIBC_SCCS and not lint */ | 65 | #endif /* LIBC_SCCS and not lint */ |
66 | 66 | ||
@@ -76,8 +76,7 @@ static char rcsid[] = "$OpenBSD: res_comp.c,v 1.8 1997/07/09 01:08:49 millert Ex | |||
76 | #include <unistd.h> | 76 | #include <unistd.h> |
77 | #include <string.h> | 77 | #include <string.h> |
78 | 78 | ||
79 | static int dn_find __P((u_char *exp_dn, u_char *msg, | 79 | static int dn_find(u_char *, u_char *, u_char **, u_char **); |
80 | u_char **dnptrs, u_char **lastdnptr)); | ||
81 | 80 | ||
82 | /* | 81 | /* |
83 | * Expand compressed domain name 'comp_dn' to full domain name. | 82 | * Expand compressed domain name 'comp_dn' to full domain name. |