summaryrefslogtreecommitdiff
path: root/src/lib/libc/net
diff options
context:
space:
mode:
authormillert <>2002-02-16 21:27:50 +0000
committermillert <>2002-02-16 21:27:50 +0000
commit052e020be6be85be6238c44b8386a61f8db7b6a4 (patch)
tree4cf8f905bd37027527533678516a258fa89e2696 /src/lib/libc/net
parentee0af55ed65515812050f3b9a8d431c941b73eb8 (diff)
downloadopenbsd-052e020be6be85be6238c44b8386a61f8db7b6a4.tar.gz
openbsd-052e020be6be85be6238c44b8386a61f8db7b6a4.tar.bz2
openbsd-052e020be6be85be6238c44b8386a61f8db7b6a4.zip
Part one of userland __P removal. Done with a simple regexp with some minor hand editing to make comments line up correctly. Another pass is forthcoming that handles the cases that could not be done automatically.
Diffstat (limited to 'src/lib/libc/net')
-rw-r--r--src/lib/libc/net/ethers.c6
-rw-r--r--src/lib/libc/net/getaddrinfo.c32
-rw-r--r--src/lib/libc/net/gethostnamadr.c12
-rw-r--r--src/lib/libc/net/getnameinfo.c4
-rw-r--r--src/lib/libc/net/getnetnamadr.c10
-rw-r--r--src/lib/libc/net/inet_ntop.c8
-rw-r--r--src/lib/libc/net/inet_pton.c8
-rw-r--r--src/lib/libc/net/ns_addr.c6
-rw-r--r--src/lib/libc/net/ns_ntoa.c4
-rw-r--r--src/lib/libc/net/rcmd.c8
-rw-r--r--src/lib/libc/net/res_init.c8
-rw-r--r--src/lib/libc/net/res_query.c8
-rw-r--r--src/lib/libc/net/res_random.c6
-rw-r--r--src/lib/libc/net/res_send.c10
14 files changed, 65 insertions, 65 deletions
diff --git a/src/lib/libc/net/ethers.c b/src/lib/libc/net/ethers.c
index 2c8328a9ba..e7781438c1 100644
--- a/src/lib/libc/net/ethers.c
+++ b/src/lib/libc/net/ethers.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ethers.c,v 1.12 2001/06/27 00:58:54 lebel Exp $ */ 1/* $OpenBSD: ethers.c,v 1.13 2002/02/16 21:27:23 millert Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com> 4 * Copyright (c) 1998 Todd C. Miller <Todd.Miller@courtesan.com>
@@ -34,7 +34,7 @@
34 */ 34 */
35 35
36#if defined(LIBC_SCCS) && !defined(lint) 36#if defined(LIBC_SCCS) && !defined(lint)
37static char rcsid[] = "$OpenBSD: ethers.c,v 1.12 2001/06/27 00:58:54 lebel Exp $"; 37static char rcsid[] = "$OpenBSD: ethers.c,v 1.13 2002/02/16 21:27:23 millert Exp $";
38#endif /* LIBC_SCCS and not lint */ 38#endif /* LIBC_SCCS and not lint */
39 39
40#include <sys/types.h> 40#include <sys/types.h>
@@ -57,7 +57,7 @@ static char rcsid[] = "$OpenBSD: ethers.c,v 1.12 2001/06/27 00:58:54 lebel Exp $
57#define _PATH_ETHERS "/etc/ethers" 57#define _PATH_ETHERS "/etc/ethers"
58#endif 58#endif
59 59
60static char * _ether_aton __P((char *, struct ether_addr *)); 60static char * _ether_aton(char *, struct ether_addr *);
61 61
62char * 62char *
63ether_ntoa(e) 63ether_ntoa(e)
diff --git a/src/lib/libc/net/getaddrinfo.c b/src/lib/libc/net/getaddrinfo.c
index 5b36626ceb..72183d260b 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.31 2002/01/02 23:00:10 deraadt Exp $ */ 1/* $OpenBSD: getaddrinfo.c,v 1.32 2002/02/16 21:27: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/*
@@ -199,7 +199,7 @@ struct res_target {
199 int n; /* result length */ 199 int n; /* result length */
200}; 200};
201 201
202static int str_isnumber __P((const char *)); 202static int str_isnumber(const char *);
203static int explore_fqdn __P((const struct addrinfo *, const char *, 203static int explore_fqdn __P((const struct addrinfo *, const char *,
204 const char *, struct addrinfo **)); 204 const char *, struct addrinfo **));
205static int explore_null __P((const struct addrinfo *, 205static int explore_null __P((const struct addrinfo *,
@@ -212,32 +212,32 @@ static int get_canonname __P((const struct addrinfo *,
212 struct addrinfo *, const char *)); 212 struct addrinfo *, const char *));
213static struct addrinfo *get_ai __P((const struct addrinfo *, 213static struct addrinfo *get_ai __P((const struct addrinfo *,
214 const struct afd *, const char *)); 214 const struct afd *, const char *));
215static int get_portmatch __P((const struct addrinfo *, const char *)); 215static int get_portmatch(const struct addrinfo *, const char *);
216static int get_port __P((struct addrinfo *, const char *, int)); 216static int get_port(struct addrinfo *, const char *, int);
217static const struct afd *find_afd __P((int)); 217static const struct afd *find_afd(int);
218#if 0 218#if 0
219static int addrconfig __P((const struct addrinfo *)); 219static int addrconfig(const struct addrinfo *);
220#endif 220#endif
221#ifdef INET6 221#ifdef INET6
222static int ip6_str2scopeid __P((char *, struct sockaddr_in6 *)); 222static int ip6_str2scopeid(char *, struct sockaddr_in6 *);
223#endif 223#endif
224 224
225static void _sethtent __P((void)); 225static void _sethtent(void);
226static void _endhtent __P((void)); 226static void _endhtent(void);
227static struct addrinfo * _gethtent __P((const char *, const struct addrinfo *)); 227static struct addrinfo * _gethtent(const char *, const struct addrinfo *);
228static struct addrinfo *_files_getaddrinfo __P((const char *, 228static struct addrinfo *_files_getaddrinfo __P((const char *,
229 const struct addrinfo *)); 229 const struct addrinfo *));
230 230
231#ifdef YP 231#ifdef YP
232static struct addrinfo *_yphostent __P((char *, const struct addrinfo *)); 232static struct addrinfo *_yphostent(char *, const struct addrinfo *);
233static struct addrinfo *_yp_getaddrinfo __P((const char *, 233static struct addrinfo *_yp_getaddrinfo __P((const char *,
234 const struct addrinfo *)); 234 const struct addrinfo *));
235#endif 235#endif
236 236
237static struct addrinfo *getanswer __P((const querybuf *, int, const char *, int, 237static struct addrinfo *getanswer __P((const querybuf *, int, const char *, int,
238 const struct addrinfo *)); 238 const struct addrinfo *));
239static int res_queryN __P((const char *, struct res_target *)); 239static int res_queryN(const char *, struct res_target *);
240static int res_searchN __P((const char *, struct res_target *)); 240static int res_searchN(const char *, struct res_target *);
241static int res_querydomainN __P((const char *, const char *, 241static int res_querydomainN __P((const char *, const char *,
242 struct res_target *)); 242 struct res_target *));
243static struct addrinfo *_dns_getaddrinfo __P((const char *, 243static struct addrinfo *_dns_getaddrinfo __P((const char *,
@@ -1037,7 +1037,7 @@ getanswer(answer, anslen, qname, qtype, pai)
1037 int type, class, buflen, ancount, qdcount; 1037 int type, class, buflen, ancount, qdcount;
1038 int haveanswer, had_error; 1038 int haveanswer, had_error;
1039 char tbuf[MAXDNAME]; 1039 char tbuf[MAXDNAME];
1040 int (*name_ok) __P((const char *)); 1040 int (*name_ok)(const char *);
1041 char hostbuf[8*1024]; 1041 char hostbuf[8*1024];
1042 1042
1043 memset(&sentinel, 0, sizeof(sentinel)); 1043 memset(&sentinel, 0, sizeof(sentinel));
@@ -1509,9 +1509,9 @@ _yp_getaddrinfo(name, pai)
1509 1509
1510/* resolver logic */ 1510/* resolver logic */
1511 1511
1512extern const char *__hostalias __P((const char *)); 1512extern const char *__hostalias(const char *);
1513extern int h_errno; 1513extern int h_errno;
1514extern int res_opt __P((int, u_char *, int, int)); 1514extern int res_opt(int, u_char *, int, int);
1515 1515
1516/* 1516/*
1517 * Formulate a normal query, send, and await answer. 1517 * Formulate a normal query, send, and await answer.
diff --git a/src/lib/libc/net/gethostnamadr.c b/src/lib/libc/net/gethostnamadr.c
index d7d6c621cf..d4e3c5e6f0 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)
55static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.43 2001/06/27 00:58:55 lebel Exp $"; 55static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.44 2002/02/16 21:27: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>
@@ -98,14 +98,14 @@ static union {
98static FILE *hostf = NULL; 98static FILE *hostf = NULL;
99static int stayopen = 0; 99static int stayopen = 0;
100 100
101static void map_v4v6_address __P((const char *src, char *dst)); 101static void map_v4v6_address(const char *src, char *dst);
102static void map_v4v6_hostent __P((struct hostent *hp, char **bp, int *len)); 102static void map_v4v6_hostent(struct hostent *hp, char **bp, int *len);
103 103
104#ifdef RESOLVSORT 104#ifdef RESOLVSORT
105static void addrsort __P((char **, int)); 105static void addrsort(char **, int);
106#endif 106#endif
107 107
108int _hokchar __P((const char *)); 108int _hokchar(const char *);
109 109
110static const char AskedForGot[] = 110static const char AskedForGot[] =
111 "gethostby*.getanswer: asked for \"%s\", got \"%s\""; 111 "gethostby*.getanswer: asked for \"%s\", got \"%s\"";
@@ -175,7 +175,7 @@ getanswer(answer, anslen, qname, qtype)
175 int toobig = 0; 175 int toobig = 0;
176 char tbuf[MAXDNAME]; 176 char tbuf[MAXDNAME];
177 const char *tname; 177 const char *tname;
178 int (*name_ok) __P((const char *)); 178 int (*name_ok)(const char *);
179 179
180 tname = qname; 180 tname = qname;
181 host.h_name = NULL; 181 host.h_name = NULL;
diff --git a/src/lib/libc/net/getnameinfo.c b/src/lib/libc/net/getnameinfo.c
index 0ae09ca30f..c19603f2d1 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.21 2001/11/15 04:56:15 itojun Exp $ */ 1/* $OpenBSD: getnameinfo.c,v 1.22 2002/02/16 21:27: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/*
@@ -83,7 +83,7 @@ struct sockinet {
83#ifdef INET6 83#ifdef INET6
84static int ip6_parsenumeric __P((const struct sockaddr *, const char *, char *, 84static int ip6_parsenumeric __P((const struct sockaddr *, const char *, char *,
85 size_t, int)); 85 size_t, int));
86static int ip6_sa2str __P((const struct sockaddr_in6 *, char *, size_t, int)); 86static int ip6_sa2str(const struct sockaddr_in6 *, char *, size_t, int);
87#endif 87#endif
88 88
89int 89int
diff --git a/src/lib/libc/net/getnetnamadr.c b/src/lib/libc/net/getnetnamadr.c
index f755cd9b14..834ddf11ae 100644
--- a/src/lib/libc/net/getnetnamadr.c
+++ b/src/lib/libc/net/getnetnamadr.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: getnetnamadr.c,v 1.14 2001/06/27 00:58:55 lebel Exp $ */ 1/* $OpenBSD: getnetnamadr.c,v 1.15 2002/02/16 21:27:23 millert Exp $ */
2 2
3/* 3/*
4 * Copyright (c) 1997, Jason Downs. All rights reserved. 4 * Copyright (c) 1997, Jason Downs. All rights reserved.
@@ -77,7 +77,7 @@ static char sccsid[] = "@(#)getnetbyaddr.c 8.1 (Berkeley) 6/4/93";
77static char sccsid_[] = "from getnetnamadr.c 1.4 (Coimbra) 93/06/03"; 77static char sccsid_[] = "from getnetnamadr.c 1.4 (Coimbra) 93/06/03";
78static char rcsid[] = "$From: getnetnamadr.c,v 8.7 1996/08/05 08:31:35 vixie Exp $"; 78static char rcsid[] = "$From: getnetnamadr.c,v 8.7 1996/08/05 08:31:35 vixie Exp $";
79#else 79#else
80static char rcsid[] = "$OpenBSD: getnetnamadr.c,v 1.14 2001/06/27 00:58:55 lebel Exp $"; 80static char rcsid[] = "$OpenBSD: getnetnamadr.c,v 1.15 2002/02/16 21:27:23 millert Exp $";
81#endif 81#endif
82#endif /* LIBC_SCCS and not lint */ 82#endif /* LIBC_SCCS and not lint */
83 83
@@ -97,10 +97,10 @@ static char rcsid[] = "$OpenBSD: getnetnamadr.c,v 1.14 2001/06/27 00:58:55 lebel
97 97
98extern int h_errno; 98extern int h_errno;
99 99
100struct netent *_getnetbyaddr __P((in_addr_t net, int type)); 100struct netent *_getnetbyaddr(in_addr_t net, int type);
101struct netent *_getnetbyname __P((const char *name)); 101struct netent *_getnetbyname(const char *name);
102 102
103int _hokchar __P((const char *)); 103int _hokchar(const char *);
104 104
105#define BYADDR 0 105#define BYADDR 0
106#define BYNAME 1 106#define BYNAME 1
diff --git a/src/lib/libc/net/inet_ntop.c b/src/lib/libc/net/inet_ntop.c
index 64d0d13768..00b8f6b22e 100644
--- a/src/lib/libc/net/inet_ntop.c
+++ b/src/lib/libc/net/inet_ntop.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: inet_ntop.c,v 1.1 1997/03/13 19:07:32 downsj Exp $ */ 1/* $OpenBSD: inet_ntop.c,v 1.2 2002/02/16 21:27:23 millert Exp $ */
2 2
3/* Copyright (c) 1996 by Internet Software Consortium. 3/* Copyright (c) 1996 by Internet Software Consortium.
4 * 4 *
@@ -20,7 +20,7 @@
20#if 0 20#if 0
21static char rcsid[] = "$From: inet_ntop.c,v 8.7 1996/08/05 08:41:18 vixie Exp $"; 21static char rcsid[] = "$From: inet_ntop.c,v 8.7 1996/08/05 08:41:18 vixie Exp $";
22#else 22#else
23static char rcsid[] = "$OpenBSD: inet_ntop.c,v 1.1 1997/03/13 19:07:32 downsj Exp $"; 23static char rcsid[] = "$OpenBSD: inet_ntop.c,v 1.2 2002/02/16 21:27:23 millert Exp $";
24#endif 24#endif
25#endif /* LIBC_SCCS and not lint */ 25#endif /* LIBC_SCCS and not lint */
26 26
@@ -39,8 +39,8 @@ static char rcsid[] = "$OpenBSD: inet_ntop.c,v 1.1 1997/03/13 19:07:32 downsj Ex
39 * sizeof(int) < 4. sizeof(int) > 4 is fine; all the world's not a VAX. 39 * sizeof(int) < 4. sizeof(int) > 4 is fine; all the world's not a VAX.
40 */ 40 */
41 41
42static const char *inet_ntop4 __P((const u_char *src, char *dst, size_t size)); 42static const char *inet_ntop4(const u_char *src, char *dst, size_t size);
43static const char *inet_ntop6 __P((const u_char *src, char *dst, size_t size)); 43static const char *inet_ntop6(const u_char *src, char *dst, size_t size);
44 44
45/* char * 45/* char *
46 * inet_ntop(af, src, dst, size) 46 * inet_ntop(af, src, dst, size)
diff --git a/src/lib/libc/net/inet_pton.c b/src/lib/libc/net/inet_pton.c
index 0cb13baa31..b04ef05c31 100644
--- a/src/lib/libc/net/inet_pton.c
+++ b/src/lib/libc/net/inet_pton.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: inet_pton.c,v 1.3 1999/12/08 09:31:15 itojun Exp $ */ 1/* $OpenBSD: inet_pton.c,v 1.4 2002/02/16 21:27:23 millert Exp $ */
2 2
3/* Copyright (c) 1996 by Internet Software Consortium. 3/* Copyright (c) 1996 by Internet Software Consortium.
4 * 4 *
@@ -20,7 +20,7 @@
20#if 0 20#if 0
21static char rcsid[] = "$From: inet_pton.c,v 8.7 1996/08/05 08:31:35 vixie Exp $"; 21static char rcsid[] = "$From: inet_pton.c,v 8.7 1996/08/05 08:31:35 vixie Exp $";
22#else 22#else
23static char rcsid[] = "$OpenBSD: inet_pton.c,v 1.3 1999/12/08 09:31:15 itojun Exp $"; 23static char rcsid[] = "$OpenBSD: inet_pton.c,v 1.4 2002/02/16 21:27:23 millert Exp $";
24#endif 24#endif
25#endif /* LIBC_SCCS and not lint */ 25#endif /* LIBC_SCCS and not lint */
26 26
@@ -38,8 +38,8 @@ static char rcsid[] = "$OpenBSD: inet_pton.c,v 1.3 1999/12/08 09:31:15 itojun Ex
38 * sizeof(int) < 4. sizeof(int) > 4 is fine; all the world's not a VAX. 38 * sizeof(int) < 4. sizeof(int) > 4 is fine; all the world's not a VAX.
39 */ 39 */
40 40
41static int inet_pton4 __P((const char *src, u_char *dst)); 41static int inet_pton4(const char *src, u_char *dst);
42static int inet_pton6 __P((const char *src, u_char *dst)); 42static int inet_pton6(const char *src, u_char *dst);
43 43
44/* int 44/* int
45 * inet_pton(af, src, dst) 45 * inet_pton(af, src, dst)
diff --git a/src/lib/libc/net/ns_addr.c b/src/lib/libc/net/ns_addr.c
index 7dcc988afe..0d1b45858f 100644
--- a/src/lib/libc/net/ns_addr.c
+++ b/src/lib/libc/net/ns_addr.c
@@ -35,7 +35,7 @@
35 */ 35 */
36 36
37#if defined(LIBC_SCCS) && !defined(lint) 37#if defined(LIBC_SCCS) && !defined(lint)
38static char rcsid[] = "$OpenBSD: ns_addr.c,v 1.6 2001/06/27 00:58:55 lebel Exp $"; 38static char rcsid[] = "$OpenBSD: ns_addr.c,v 1.7 2002/02/16 21:27:23 millert Exp $";
39#endif /* LIBC_SCCS and not lint */ 39#endif /* LIBC_SCCS and not lint */
40 40
41#include <sys/param.h> 41#include <sys/param.h>
@@ -45,8 +45,8 @@ static char rcsid[] = "$OpenBSD: ns_addr.c,v 1.6 2001/06/27 00:58:55 lebel Exp $
45 45
46static struct ns_addr addr, zero_addr; 46static struct ns_addr addr, zero_addr;
47 47
48static void Field __P((char *, u_int8_t *, int)); 48static void Field(char *, u_int8_t *, int);
49static void cvtbase __P((long, int, int[], int, u_int8_t[], int)); 49static void cvtbase(long, int, int[], int, u_int8_t[], int);
50 50
51struct ns_addr 51struct ns_addr
52ns_addr(name) 52ns_addr(name)
diff --git a/src/lib/libc/net/ns_ntoa.c b/src/lib/libc/net/ns_ntoa.c
index c33f710966..130ccd388b 100644
--- a/src/lib/libc/net/ns_ntoa.c
+++ b/src/lib/libc/net/ns_ntoa.c
@@ -32,14 +32,14 @@
32 */ 32 */
33 33
34#if defined(LIBC_SCCS) && !defined(lint) 34#if defined(LIBC_SCCS) && !defined(lint)
35static char rcsid[] = "$OpenBSD: ns_ntoa.c,v 1.7 1997/08/24 21:25:48 millert Exp $"; 35static char rcsid[] = "$OpenBSD: ns_ntoa.c,v 1.8 2002/02/16 21:27:23 millert Exp $";
36#endif /* LIBC_SCCS and not lint */ 36#endif /* LIBC_SCCS and not lint */
37 37
38#include <sys/param.h> 38#include <sys/param.h>
39#include <netns/ns.h> 39#include <netns/ns.h>
40#include <stdio.h> 40#include <stdio.h>
41 41
42static char *spectHex __P((char *)); 42static char *spectHex(char *);
43 43
44char * 44char *
45ns_ntoa(addr) 45ns_ntoa(addr)
diff --git a/src/lib/libc/net/rcmd.c b/src/lib/libc/net/rcmd.c
index a9fdc1b1d0..95d481a7f6 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)
37static char *rcsid = "$OpenBSD: rcmd.c,v 1.39 2001/09/04 23:35:58 millert Exp $"; 37static char *rcsid = "$OpenBSD: rcmd.c,v 1.40 2002/02/16 21:27: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>
@@ -57,11 +57,11 @@ static char *rcsid = "$OpenBSD: rcmd.c,v 1.39 2001/09/04 23:35:58 millert Exp $"
57#include <stdlib.h> 57#include <stdlib.h>
58#include <netgroup.h> 58#include <netgroup.h>
59 59
60int __ivaliduser __P((FILE *, in_addr_t, const char *, const char *)); 60int __ivaliduser(FILE *, in_addr_t, const char *, const char *);
61int __ivaliduser_sa __P((FILE *, struct sockaddr *, socklen_t, 61int __ivaliduser_sa __P((FILE *, struct sockaddr *, socklen_t,
62 const char *, const char *)); 62 const char *, const char *));
63static int __icheckhost __P((struct sockaddr *, socklen_t, const char *)); 63static int __icheckhost(struct sockaddr *, socklen_t, const char *);
64static char *__gethostloop __P((struct sockaddr *, socklen_t)); 64static char *__gethostloop(struct sockaddr *, socklen_t);
65 65
66int 66int
67rcmd(ahost, rport, locuser, remuser, cmd, fd2p) 67rcmd(ahost, rport, locuser, remuser, cmd, fd2p)
diff --git a/src/lib/libc/net/res_init.c b/src/lib/libc/net/res_init.c
index c74e0339ba..121606ac48 100644
--- a/src/lib/libc/net/res_init.c
+++ b/src/lib/libc/net/res_init.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: res_init.c,v 1.24 2001/09/14 23:49:29 itojun Exp $ */ 1/* $OpenBSD: res_init.c,v 1.25 2002/02/16 21:27:23 millert Exp $ */
2 2
3/* 3/*
4 * ++Copyright++ 1985, 1989, 1993 4 * ++Copyright++ 1985, 1989, 1993
@@ -64,7 +64,7 @@
64static char sccsid[] = "@(#)res_init.c 8.1 (Berkeley) 6/7/93"; 64static char sccsid[] = "@(#)res_init.c 8.1 (Berkeley) 6/7/93";
65static char rcsid[] = "$From: res_init.c,v 8.7 1996/09/28 06:51:07 vixie Exp $"; 65static char rcsid[] = "$From: res_init.c,v 8.7 1996/09/28 06:51:07 vixie Exp $";
66#else 66#else
67static char rcsid[] = "$OpenBSD: res_init.c,v 1.24 2001/09/14 23:49:29 itojun Exp $"; 67static char rcsid[] = "$OpenBSD: res_init.c,v 1.25 2002/02/16 21:27:23 millert Exp $";
68#endif 68#endif
69#endif /* LIBC_SCCS and not lint */ 69#endif /* LIBC_SCCS and not lint */
70 70
@@ -109,12 +109,12 @@ static char rcsid[] = "$OpenBSD: res_init.c,v 1.24 2001/09/14 23:49:29 itojun Ex
109 * property. 109 * property.
110 */ 110 */
111 111
112static void res_setoptions __P((char *, char *)); 112static void res_setoptions(char *, char *);
113 113
114#ifdef RESOLVSORT 114#ifdef RESOLVSORT
115static const char sort_mask[] = "/&"; 115static const char sort_mask[] = "/&";
116#define ISSORTMASK(ch) (strchr(sort_mask, ch) != NULL) 116#define ISSORTMASK(ch) (strchr(sort_mask, ch) != NULL)
117static u_int32_t net_mask __P((struct in_addr)); 117static u_int32_t net_mask(struct in_addr);
118#endif 118#endif
119 119
120/* 120/*
diff --git a/src/lib/libc/net/res_query.c b/src/lib/libc/net/res_query.c
index 3cf7928302..24c07491a9 100644
--- a/src/lib/libc/net/res_query.c
+++ b/src/lib/libc/net/res_query.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: res_query.c,v 1.16 2001/07/31 22:02:18 jakob Exp $ */ 1/* $OpenBSD: res_query.c,v 1.17 2002/02/16 21:27:23 millert Exp $ */
2 2
3/* 3/*
4 * ++Copyright++ 1988, 1993 4 * ++Copyright++ 1988, 1993
@@ -60,7 +60,7 @@
60static char sccsid[] = "@(#)res_query.c 8.1 (Berkeley) 6/4/93"; 60static char sccsid[] = "@(#)res_query.c 8.1 (Berkeley) 6/4/93";
61static char rcsid[] = "$From: res_query.c,v 8.9 1996/09/22 00:13:28 vixie Exp $"; 61static char rcsid[] = "$From: res_query.c,v 8.9 1996/09/22 00:13:28 vixie Exp $";
62#else 62#else
63static char rcsid[] = "$OpenBSD: res_query.c,v 1.16 2001/07/31 22:02:18 jakob Exp $"; 63static char rcsid[] = "$OpenBSD: res_query.c,v 1.17 2002/02/16 21:27:23 millert Exp $";
64#endif 64#endif
65#endif /* LIBC_SCCS and not lint */ 65#endif /* LIBC_SCCS and not lint */
66 66
@@ -85,9 +85,9 @@ static char rcsid[] = "$OpenBSD: res_query.c,v 1.16 2001/07/31 22:02:18 jakob Ex
85#define MAXPACKET 1024 85#define MAXPACKET 1024
86#endif 86#endif
87 87
88const char *hostalias __P((const char *)); 88const char *hostalias(const char *);
89int h_errno; 89int h_errno;
90extern int res_opt __P((int, u_char *, int, int)); 90extern int res_opt(int, u_char *, int, int);
91 91
92/* 92/*
93 * Formulate a normal query, send, and await answer. 93 * Formulate a normal query, send, and await answer.
diff --git a/src/lib/libc/net/res_random.c b/src/lib/libc/net/res_random.c
index a11241246d..6a6a142e96 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.9 2001/01/04 21:45:31 todd Exp $ */ 1/* $OpenBSD: res_random.c,v 1.10 2002/02/16 21:27:23 millert 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>
@@ -92,8 +92,8 @@ static long ru_reseed;
92static u_int32_t tmp; /* Storage for unused random */ 92static u_int32_t tmp; /* Storage for unused random */
93static struct timeval tv; 93static struct timeval tv;
94 94
95static u_int16_t pmod __P((u_int16_t, u_int16_t, u_int16_t)); 95static u_int16_t pmod(u_int16_t, u_int16_t, u_int16_t);
96static void res_initid __P((void)); 96static void res_initid(void);
97 97
98/* 98/*
99 * Do a fast modular exponation, returned value will be in the range 99 * Do a fast modular exponation, returned value will be in the range
diff --git a/src/lib/libc/net/res_send.c b/src/lib/libc/net/res_send.c
index ab50559de6..81bf23ba9f 100644
--- a/src/lib/libc/net/res_send.c
+++ b/src/lib/libc/net/res_send.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: res_send.c,v 1.10 2001/09/14 23:49:29 itojun Exp $ */ 1/* $OpenBSD: res_send.c,v 1.11 2002/02/16 21:27:23 millert Exp $ */
2 2
3/* 3/*
4 * ++Copyright++ 1985, 1989, 1993 4 * ++Copyright++ 1985, 1989, 1993
@@ -64,7 +64,7 @@
64static char sccsid[] = "@(#)res_send.c 8.1 (Berkeley) 6/4/93"; 64static char sccsid[] = "@(#)res_send.c 8.1 (Berkeley) 6/4/93";
65static char rcsid[] = "$From: res_send.c,v 8.12 1996/10/08 04:51:06 vixie Exp $"; 65static char rcsid[] = "$From: res_send.c,v 8.12 1996/10/08 04:51:06 vixie Exp $";
66#else 66#else
67static char rcsid[] = "$OpenBSD: res_send.c,v 1.10 2001/09/14 23:49:29 itojun Exp $"; 67static char rcsid[] = "$OpenBSD: res_send.c,v 1.11 2002/02/16 21:27:23 millert Exp $";
68#endif 68#endif
69#endif /* LIBC_SCCS and not lint */ 69#endif /* LIBC_SCCS and not lint */
70 70
@@ -126,8 +126,8 @@ static int af = 0; /* address family of socket */
126 } else {} 126 } else {}
127static char abuf[NI_MAXHOST]; 127static char abuf[NI_MAXHOST];
128static char pbuf[NI_MAXSERV]; 128static char pbuf[NI_MAXSERV];
129static void Aerror __P((FILE *, char *, int, struct sockaddr *)); 129static void Aerror(FILE *, char *, int, struct sockaddr *);
130static void Perror __P((FILE *, char *, int)); 130static void Perror(FILE *, char *, int);
131 131
132 static void 132 static void
133 Aerror(file, string, error, address) 133 Aerror(file, string, error, address)
@@ -186,7 +186,7 @@ res_send_setrhook(hook)
186} 186}
187 187
188#ifdef INET6 188#ifdef INET6
189static struct sockaddr * get_nsaddr __P((size_t)); 189static struct sockaddr * get_nsaddr(size_t);
190 190
191/* 191/*
192 * pick appropriate nsaddr_list for use. see res_init() for initialization. 192 * pick appropriate nsaddr_list for use. see res_init() for initialization.