summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormillert <>2002-02-17 19:42:31 +0000
committermillert <>2002-02-17 19:42:31 +0000
commit4d9f43fe58441f274978bd37f319b3c63bd308d3 (patch)
treea9c66881d16890b41470cc24e11482c34a906618
parentf192ef46d42d6e5294ddb97a544aefe74db261c6 (diff)
downloadopenbsd-4d9f43fe58441f274978bd37f319b3c63bd308d3.tar.gz
openbsd-4d9f43fe58441f274978bd37f319b3c63bd308d3.tar.bz2
openbsd-4d9f43fe58441f274978bd37f319b3c63bd308d3.zip
Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)
-rw-r--r--src/lib/libc/net/getaddrinfo.c44
-rw-r--r--src/lib/libc/net/gethostnamadr.c5
-rw-r--r--src/lib/libc/net/getnameinfo.c6
-rw-r--r--src/lib/libc/net/inet_net_ntop.c7
-rw-r--r--src/lib/libc/net/inet_net_pton.c7
-rw-r--r--src/lib/libc/net/rcmd.c6
-rw-r--r--src/lib/libc/net/res_comp.c7
-rw-r--r--src/lib/libc/stdlib/merge.c6
-rw-r--r--src/lib/libc/stdlib/qsort.c4
-rw-r--r--src/lib/libc/stdlib/radixsort.c6
-rw-r--r--src/usr.bin/nc/netcat.c4
11 files changed, 48 insertions, 54 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
202static int str_isnumber(const char *); 202static int str_isnumber(const char *);
203static int explore_fqdn __P((const struct addrinfo *, const char *, 203static int explore_fqdn(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(const struct addrinfo *,
206 const char *, struct addrinfo **)); 206 const char *, struct addrinfo **);
207static int explore_numeric __P((const struct addrinfo *, const char *, 207static int explore_numeric(const struct addrinfo *, const char *,
208 const char *, struct addrinfo **)); 208 const char *, struct addrinfo **);
209static int explore_numeric_scope __P((const struct addrinfo *, const char *, 209static int explore_numeric_scope(const struct addrinfo *, const char *,
210 const char *, struct addrinfo **)); 210 const char *, struct addrinfo **);
211static int get_canonname __P((const struct addrinfo *, 211static int get_canonname(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(const struct addrinfo *,
214 const struct afd *, const char *)); 214 const struct afd *, const char *);
215static int get_portmatch(const struct addrinfo *, const char *); 215static int get_portmatch(const struct addrinfo *, const char *);
216static int get_port(struct addrinfo *, const char *, int); 216static int get_port(struct addrinfo *, const char *, int);
217static const struct afd *find_afd(int); 217static const struct afd *find_afd(int);
@@ -225,23 +225,21 @@ static int ip6_str2scopeid(char *, struct sockaddr_in6 *);
225static void _sethtent(void); 225static void _sethtent(void);
226static void _endhtent(void); 226static void _endhtent(void);
227static struct addrinfo * _gethtent(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(const char *,
229 const struct addrinfo *)); 229 const struct addrinfo *);
230 230
231#ifdef YP 231#ifdef YP
232static struct addrinfo *_yphostent(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(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(const querybuf *, int, const char *, int,
238 const struct addrinfo *)); 238 const struct addrinfo *);
239static int res_queryN(const char *, struct res_target *); 239static int res_queryN(const char *, struct res_target *);
240static int res_searchN(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(const char *, const char *, struct res_target *);
242 struct res_target *)); 242static struct addrinfo *_dns_getaddrinfo(const char *, const struct addrinfo *);
243static 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)
55static char rcsid[] = "$OpenBSD: gethostnamadr.c,v 1.44 2002/02/16 21:27:23 millert Exp $"; 55static 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
129static struct hostent *getanswer __P((const querybuf *, int, const char *, 129static struct hostent *getanswer(const querybuf *, int, const char *, int);
130 int));
131 130
132extern int h_errno; 131extern 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
84static int ip6_parsenumeric __P((const struct sockaddr *, const char *, char *, 84static int ip6_parsenumeric(const struct sockaddr *, const char *, char *,
85 size_t, int)); 85 size_t, int);
86static int ip6_sa2str(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
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
22static const char rcsid[] = "$From: inet_net_ntop.c,v 8.2 1996/08/08 06:54:44 vixie Exp $"; 22static const char rcsid[] = "$From: inet_net_ntop.c,v 8.2 1996/08/08 06:54:44 vixie Exp $";
23#else 23#else
24static const char rcsid[] = "$OpenBSD: inet_net_ntop.c,v 1.1 1997/03/13 19:07:30 downsj Exp $"; 24static 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
38static char * inet_net_ntop_ipv4 __P((const u_char *src, int bits, 38static 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
22static const char rcsid[] = "$From: inet_net_pton.c,v 8.3 1996/11/11 06:36:52 vixie Exp $"; 22static const char rcsid[] = "$From: inet_net_pton.c,v 8.3 1996/11/11 06:36:52 vixie Exp $";
23#else 23#else
24static const char rcsid[] = "$OpenBSD: inet_net_pton.c,v 1.1 1997/03/13 19:07:30 downsj Exp $"; 24static 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
40static int inet_net_pton_ipv4 __P((const char *src, u_char *dst, 40static 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)
37static char *rcsid = "$OpenBSD: rcmd.c,v 1.40 2002/02/16 21:27:23 millert Exp $"; 37static 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
60int __ivaliduser(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(FILE *, struct sockaddr *, socklen_t,
62 const char *, const char *)); 62 const char *, const char *);
63static int __icheckhost(struct sockaddr *, socklen_t, const char *); 63static int __icheckhost(struct sockaddr *, socklen_t, const char *);
64static char *__gethostloop(struct sockaddr *, socklen_t); 64static 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 @@
60static char sccsid[] = "@(#)res_comp.c 8.1 (Berkeley) 6/4/93"; 60static char sccsid[] = "@(#)res_comp.c 8.1 (Berkeley) 6/4/93";
61static char rcsid[] = "$From: res_comp.c,v 8.11 1996/12/02 09:17:22 vixie Exp $"; 61static char rcsid[] = "$From: res_comp.c,v 8.11 1996/12/02 09:17:22 vixie Exp $";
62#else 62#else
63static char rcsid[] = "$OpenBSD: res_comp.c,v 1.8 1997/07/09 01:08:49 millert Exp $"; 63static 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
79static int dn_find __P((u_char *exp_dn, u_char *msg, 79static 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.
diff --git a/src/lib/libc/stdlib/merge.c b/src/lib/libc/stdlib/merge.c
index 345eb2fd8b..4ae6488af2 100644
--- a/src/lib/libc/stdlib/merge.c
+++ b/src/lib/libc/stdlib/merge.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: merge.c,v 1.4 2002/02/16 21:27:24 millert Exp $"; 38static char *rcsid = "$OpenBSD: merge.c,v 1.5 2002/02/17 19:42:24 millert Exp $";
39#endif /* LIBC_SCCS and not lint */ 39#endif /* LIBC_SCCS and not lint */
40 40
41/* 41/*
@@ -58,8 +58,8 @@ static char *rcsid = "$OpenBSD: merge.c,v 1.4 2002/02/16 21:27:24 millert Exp $"
58#include <stdlib.h> 58#include <stdlib.h>
59#include <string.h> 59#include <string.h>
60 60
61static void setup __P((u_char *, u_char *, size_t, size_t, int (*)())); 61static void setup(u_char *, u_char *, size_t, size_t, int (*)());
62static void insertionsort __P((u_char *, size_t, size_t, int (*)())); 62static void insertionsort(u_char *, size_t, size_t, int (*)());
63 63
64#define ISIZE sizeof(int) 64#define ISIZE sizeof(int)
65#define PSIZE sizeof(u_char *) 65#define PSIZE sizeof(u_char *)
diff --git a/src/lib/libc/stdlib/qsort.c b/src/lib/libc/stdlib/qsort.c
index d16ed7b0bd..9b8bb5801b 100644
--- a/src/lib/libc/stdlib/qsort.c
+++ b/src/lib/libc/stdlib/qsort.c
@@ -32,13 +32,13 @@
32 */ 32 */
33 33
34#if defined(LIBC_SCCS) && !defined(lint) 34#if defined(LIBC_SCCS) && !defined(lint)
35static char *rcsid = "$OpenBSD: qsort.c,v 1.6 2002/02/16 21:27:24 millert Exp $"; 35static char *rcsid = "$OpenBSD: qsort.c,v 1.7 2002/02/17 19:42:24 millert Exp $";
36#endif /* LIBC_SCCS and not lint */ 36#endif /* LIBC_SCCS and not lint */
37 37
38#include <sys/types.h> 38#include <sys/types.h>
39#include <stdlib.h> 39#include <stdlib.h>
40 40
41static __inline char *med3 __P((char *, char *, char *, int (*)())); 41static __inline char *med3(char *, char *, char *, int (*)());
42static __inline void swapfunc(char *, char *, int, int); 42static __inline void swapfunc(char *, char *, int, int);
43 43
44#define min(a, b) (a) < (b) ? a : b 44#define min(a, b) (a) < (b) ? a : b
diff --git a/src/lib/libc/stdlib/radixsort.c b/src/lib/libc/stdlib/radixsort.c
index 40d7c0789f..e03b479715 100644
--- a/src/lib/libc/stdlib/radixsort.c
+++ b/src/lib/libc/stdlib/radixsort.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: radixsort.c,v 1.4 2002/02/16 21:27:24 millert Exp $"; 38static char *rcsid = "$OpenBSD: radixsort.c,v 1.5 2002/02/17 19:42:24 millert Exp $";
39#endif /* LIBC_SCCS and not lint */ 39#endif /* LIBC_SCCS and not lint */
40 40
41/* 41/*
@@ -63,8 +63,8 @@ typedef struct {
63static __inline void simplesort 63static __inline void simplesort
64(const u_char **, int, int, const u_char *, u_int); 64(const u_char **, int, int, const u_char *, u_int);
65static void r_sort_a(const u_char **, int, int, const u_char *, u_int); 65static void r_sort_a(const u_char **, int, int, const u_char *, u_int);
66static void r_sort_b __P((const u_char **, 66static void r_sort_b(const u_char **,
67 const u_char **, int, int, const u_char *, u_int)); 67 const u_char **, int, int, const u_char *, u_int);
68 68
69#define THRESHOLD 20 /* Divert to simplesort(). */ 69#define THRESHOLD 20 /* Divert to simplesort(). */
70#define SIZE 512 /* Default stack size. */ 70#define SIZE 512 /* Default stack size. */
diff --git a/src/usr.bin/nc/netcat.c b/src/usr.bin/nc/netcat.c
index 8caa2483e3..8d5603c999 100644
--- a/src/usr.bin/nc/netcat.c
+++ b/src/usr.bin/nc/netcat.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: netcat.c,v 1.43 2002/02/17 03:24:56 ericj Exp $ */ 1/* $OpenBSD: netcat.c,v 1.44 2002/02/17 19:42:31 millert Exp $ */
2/* 2/*
3 * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> 3 * Copyright (c) 2001 Eric Jackson <ericj@monkey.org>
4 * 4 *
@@ -70,7 +70,7 @@ int timeout;
70int family = AF_UNSPEC; 70int family = AF_UNSPEC;
71char *portlist[PORT_MAX]; 71char *portlist[PORT_MAX];
72 72
73ssize_t atomicio __P((ssize_t (*)(), int, void *, size_t)); 73ssize_t atomicio(ssize_t (*)(), int, void *, size_t);
74void atelnet(int, unsigned char *, unsigned int); 74void atelnet(int, unsigned char *, unsigned int);
75void build_ports(char *); 75void build_ports(char *);
76void help(void); 76void help(void);