diff options
author | obrien <obrien@FreeBSD.org> | 2002-03-21 22:49:10 +0000 |
---|---|---|
committer | obrien <obrien@FreeBSD.org> | 2002-03-21 22:49:10 +0000 |
commit | 3b73ce2319e249cf2795cf4b0d0c624134f01e77 (patch) | |
tree | 8e16a65843d0b07cf60b7fb748e2ac4890d6f1fd /lib/libc/net | |
parent | 5da7065f3d4fe05102865926b09192cffa03a251 (diff) | |
download | FreeBSD-src-3b73ce2319e249cf2795cf4b0d0c624134f01e77.zip FreeBSD-src-3b73ce2319e249cf2795cf4b0d0c624134f01e77.tar.gz |
Remove __P() usage.
Diffstat (limited to 'lib/libc/net')
-rw-r--r-- | lib/libc/net/getaddrinfo.c | 36 | ||||
-rw-r--r-- | lib/libc/net/gethostbydns.c | 4 | ||||
-rw-r--r-- | lib/libc/net/getnameinfo.c | 2 | ||||
-rw-r--r-- | lib/libc/net/getservent.c | 2 | ||||
-rw-r--r-- | lib/libc/net/hesiod.c | 8 | ||||
-rw-r--r-- | lib/libc/net/inet_pton.c | 4 | ||||
-rw-r--r-- | lib/libc/net/name6.c | 2 | ||||
-rw-r--r-- | lib/libc/net/nsdispatch.c | 4 | ||||
-rw-r--r-- | lib/libc/net/nsparser.y | 2 | ||||
-rw-r--r-- | lib/libc/net/rcmd.c | 4 | ||||
-rw-r--r-- | lib/libc/net/res_init.c | 4 | ||||
-rw-r--r-- | lib/libc/net/res_send.c | 6 |
12 files changed, 39 insertions, 39 deletions
diff --git a/lib/libc/net/getaddrinfo.c b/lib/libc/net/getaddrinfo.c index 6f83ec4..e598bdb 100644 --- a/lib/libc/net/getaddrinfo.c +++ b/lib/libc/net/getaddrinfo.c @@ -217,7 +217,7 @@ struct res_target { int n; /* result length */ }; -static int str_isnumber __P((const char *)); +static int str_isnumber(const char *); static int explore_fqdn __P((const struct addrinfo *, const char *, const char *, struct addrinfo **)); static int explore_null __P((const struct addrinfo *, @@ -230,29 +230,29 @@ static int get_canonname __P((const struct addrinfo *, struct addrinfo *, const char *)); static struct addrinfo *get_ai __P((const struct addrinfo *, const struct afd *, const char *)); -static int get_portmatch __P((const struct addrinfo *, const char *)); -static int get_port __P((struct addrinfo *, const char *, int)); -static const struct afd *find_afd __P((int)); -static int addrconfig __P((struct addrinfo *)); +static int get_portmatch(const struct addrinfo *, const char *); +static int get_port(struct addrinfo *, const char *, int); +static const struct afd *find_afd(int); +static int addrconfig(struct addrinfo *); #ifdef INET6 -static int ip6_str2scopeid __P((char *, struct sockaddr_in6 *)); +static int ip6_str2scopeid(char *, struct sockaddr_in6 *); #endif static struct addrinfo *getanswer __P((const querybuf *, int, const char *, int, const struct addrinfo *)); -static int _dns_getaddrinfo __P((void *, void *, va_list)); -static void _sethtent __P((void)); -static void _endhtent __P((void)); -static struct addrinfo *_gethtent __P((const char *, const struct addrinfo *)); -static int _files_getaddrinfo __P((void *, void *, va_list)); +static int _dns_getaddrinfo(void *, void *, va_list); +static void _sethtent(void); +static void _endhtent(void); +static struct addrinfo *_gethtent(const char *, const struct addrinfo *); +static int _files_getaddrinfo(void *, void *, va_list); #ifdef YP -static struct addrinfo *_yphostent __P((char *, const struct addrinfo *)); -static int _yp_getaddrinfo __P((void *, void *, va_list)); -extern int _yp_check __P((char **)); +static struct addrinfo *_yphostent(char *, const struct addrinfo *); +static int _yp_getaddrinfo(void *, void *, va_list); +extern int _yp_check(char **); #endif -static int res_queryN __P((const char *, struct res_target *)); -static int res_searchN __P((const char *, struct res_target *)); +static int res_queryN(const char *, struct res_target *); +static int res_searchN(const char *, struct res_target *); static int res_querydomainN __P((const char *, const char *, struct res_target *)); @@ -1144,7 +1144,7 @@ getanswer(answer, anslen, qname, qtype, pai) int type, class, buflen, ancount, qdcount; int haveanswer, had_error; char tbuf[MAXDNAME]; - int (*name_ok) __P((const char *)); + int (*name_ok)(const char *); char hostbuf[8*1024]; memset(&sentinel, 0, sizeof(sentinel)); @@ -1671,7 +1671,7 @@ _yp_getaddrinfo(rv, cb_data, ap) /* resolver logic */ -extern const char *__hostalias __P((const char *)); +extern const char *__hostalias(const char *); extern int h_errno; /* diff --git a/lib/libc/net/gethostbydns.c b/lib/libc/net/gethostbydns.c index f232dc9..b41a7a0 100644 --- a/lib/libc/net/gethostbydns.c +++ b/lib/libc/net/gethostbydns.c @@ -95,7 +95,7 @@ static char hostbuf[8*1024]; static u_char host_addr[16]; /* IPv4 or IPv6 */ #ifdef RESOLVSORT -static void addrsort __P((char **, int)); +static void addrsort(char **, int); #endif #ifdef DEBUG @@ -172,7 +172,7 @@ gethostanswer(answer, anslen, qname, qtype) int toobig = 0; char tbuf[MAXDNAME]; const char *tname; - int (*name_ok) __P((const char *)); + int (*name_ok)(const char *); tname = qname; host.h_name = NULL; diff --git a/lib/libc/net/getnameinfo.c b/lib/libc/net/getnameinfo.c index 06d4d00..f83cb91 100644 --- a/lib/libc/net/getnameinfo.c +++ b/lib/libc/net/getnameinfo.c @@ -83,7 +83,7 @@ struct sockinet { #ifdef INET6 static int ip6_parsenumeric __P((const struct sockaddr *, const char *, char *, size_t, int)); -static int ip6_sa2str __P((const struct sockaddr_in6 *, char *, size_t, int)); +static int ip6_sa2str(const struct sockaddr_in6 *, char *, size_t, int); #endif /* 2553bis: use EAI_xx for getnameinfo */ diff --git a/lib/libc/net/getservent.c b/lib/libc/net/getservent.c index 53a03f6..8397bfc 100644 --- a/lib/libc/net/getservent.c +++ b/lib/libc/net/getservent.c @@ -49,7 +49,7 @@ __FBSDID("$FreeBSD$"); #include <rpcsvc/yp_prot.h> #include <rpcsvc/ypclnt.h> static int serv_stepping_yp = 0; -extern int _yp_check __P(( char ** )); +extern int _yp_check( char ** ); #endif diff --git a/lib/libc/net/hesiod.c b/lib/libc/net/hesiod.c index e28d8a5..f94c316 100644 --- a/lib/libc/net/hesiod.c +++ b/lib/libc/net/hesiod.c @@ -72,10 +72,10 @@ struct hesiod_p { #define MAX_HESRESP 1024 -static int read_config_file __P((struct hesiod_p *, const char *)); -static char **get_txt_records __P((int, const char *)); -static int init_context __P((void)); -static void translate_errors __P((void)); +static int read_config_file(struct hesiod_p *, const char *); +static char **get_txt_records(int, const char *); +static int init_context(void); +static void translate_errors(void); /* diff --git a/lib/libc/net/inet_pton.c b/lib/libc/net/inet_pton.c index 488ac7f..32b3ab7 100644 --- a/lib/libc/net/inet_pton.c +++ b/lib/libc/net/inet_pton.c @@ -32,8 +32,8 @@ static char rcsid[] = "$FreeBSD$"; * sizeof(int) < 4. sizeof(int) > 4 is fine; all the world's not a VAX. */ -static int inet_pton4 __P((const char *src, u_char *dst)); -static int inet_pton6 __P((const char *src, u_char *dst)); +static int inet_pton4(const char *src, u_char *dst); +static int inet_pton6(const char *src, u_char *dst); /* int * inet_pton(af, src, dst) diff --git a/lib/libc/net/name6.c b/lib/libc/net/name6.c index 6beaa2c..405deda 100644 --- a/lib/libc/net/name6.c +++ b/lib/libc/net/name6.c @@ -1000,7 +1000,7 @@ getanswer(answer, anslen, qname, qtype, template, errp) int haveanswer, had_error; char tbuf[MAXDNAME]; const char *tname; - int (*name_ok) __P((const char *)); + int (*name_ok)(const char *); static char *h_addr_ptrs[MAXADDRS + 1]; static char *host_aliases[MAXALIASES]; static char hostbuf[8*1024]; diff --git a/lib/libc/net/nsdispatch.c b/lib/libc/net/nsdispatch.c index 166db77..cedbd90 100644 --- a/lib/libc/net/nsdispatch.c +++ b/lib/libc/net/nsdispatch.c @@ -73,7 +73,7 @@ static ns_dbt *_nsmap = NULL; #define NSELEMSPERCHUNK 8 -int _nscmp __P((const void *, const void *)); +int _nscmp(const void *, const void *); int @@ -140,7 +140,7 @@ _nsdbtget(name) ns_dbt dbt; extern FILE *_nsyyin; - extern int _nsyyparse __P((void)); + extern int _nsyyparse(void); dbt.name = name; diff --git a/lib/libc/net/nsparser.y b/lib/libc/net/nsparser.y index 79d5185..dc3be2a 100644 --- a/lib/libc/net/nsparser.y +++ b/lib/libc/net/nsparser.y @@ -50,7 +50,7 @@ static char *rcsid = #include <string.h> -static void _nsaddsrctomap __P((const char *)); +static void _nsaddsrctomap(const char *); static ns_dbt curdbt; static ns_src cursrc; diff --git a/lib/libc/net/rcmd.c b/lib/libc/net/rcmd.c index f64fa2c..91bdf28 100644 --- a/lib/libc/net/rcmd.c +++ b/lib/libc/net/rcmd.c @@ -68,11 +68,11 @@ static char sccsid[] = "@(#)rcmd.c 8.3 (Berkeley) 3/26/94"; #define NI_WITHSCOPEID 0 #endif -extern int innetgr __P(( const char *, const char *, const char *, const char * )); +extern int innetgr( const char *, const char *, const char *, const char * ); #define max(a, b) ((a > b) ? a : b) -int __ivaliduser __P((FILE *, u_int32_t, const char *, const char *)); +int __ivaliduser(FILE *, u_int32_t, const char *, const char *); int __ivaliduser_af __P((FILE *,const void *, const char *, const char *, int, int)); int __ivaliduser_sa __P((FILE *, const struct sockaddr *, socklen_t, diff --git a/lib/libc/net/res_init.c b/lib/libc/net/res_init.c index 46bf3a9..68796ba 100644 --- a/lib/libc/net/res_init.c +++ b/lib/libc/net/res_init.c @@ -91,12 +91,12 @@ static char rcsid[] = "$FreeBSD$"; #include "res_config.h" -static void res_setoptions __P((char *, char *)); +static void res_setoptions(char *, char *); #ifdef RESOLVSORT static const char sort_mask[] = "/&"; #define ISSORTMASK(ch) (strchr(sort_mask, ch) != NULL) -static u_int32_t net_mask __P((struct in_addr)); +static u_int32_t net_mask(struct in_addr); #endif #if !defined(isascii) /* XXX - could be a function */ diff --git a/lib/libc/net/res_send.c b/lib/libc/net/res_send.c index 1155ba2..47146e8 100644 --- a/lib/libc/net/res_send.c +++ b/lib/libc/net/res_send.c @@ -124,8 +124,8 @@ static res_send_rhook Rhook = NULL; } else {} static char abuf[NI_MAXHOST]; static char pbuf[NI_MAXSERV]; -static void Aerror __P((FILE *, char *, int, struct sockaddr *)); -static void Perror __P((FILE *, char *, int)); +static void Aerror(FILE *, char *, int, struct sockaddr *); +static void Perror(FILE *, char *, int); static void Aerror(file, string, error, address) @@ -180,7 +180,7 @@ res_send_setrhook(hook) Rhook = hook; } -static struct sockaddr * get_nsaddr __P((size_t)); +static struct sockaddr * get_nsaddr(size_t); /* * pick appropriate nsaddr_list for use. see res_init() for initialization. |