diff options
author | millert <> | 2002-02-17 19:42:31 +0000 |
---|---|---|
committer | millert <> | 2002-02-17 19:42:31 +0000 |
commit | 4d9f43fe58441f274978bd37f319b3c63bd308d3 (patch) | |
tree | a9c66881d16890b41470cc24e11482c34a906618 /src/lib/libc/net/getaddrinfo.c | |
parent | f192ef46d42d6e5294ddb97a544aefe74db261c6 (diff) | |
download | openbsd-4d9f43fe58441f274978bd37f319b3c63bd308d3.tar.gz openbsd-4d9f43fe58441f274978bd37f319b3c63bd308d3.tar.bz2 openbsd-4d9f43fe58441f274978bd37f319b3c63bd308d3.zip |
Manual cleanup of remaining userland __P use (excluding packages maintained outside the tree)
Diffstat (limited to 'src/lib/libc/net/getaddrinfo.c')
-rw-r--r-- | src/lib/libc/net/getaddrinfo.c | 44 |
1 files changed, 21 insertions, 23 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. */ |