summaryrefslogtreecommitdiffstats
path: root/lib/libc/net
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>2002-03-22 09:22:15 +0000
committerobrien <obrien@FreeBSD.org>2002-03-22 09:22:15 +0000
commite2881f49cc545371650e022bf57db9fee6d9f8c9 (patch)
tree940c5b6971ca7a1e0ccd4772f07ad6694c595c70 /lib/libc/net
parent700cd85b2e27d1f9b06fa6fea221100cc8d47e6f (diff)
downloadFreeBSD-src-e2881f49cc545371650e022bf57db9fee6d9f8c9.zip
FreeBSD-src-e2881f49cc545371650e022bf57db9fee6d9f8c9.tar.gz
Remove multi-line __P() usage.
Diffstat (limited to 'lib/libc/net')
-rw-r--r--lib/libc/net/getaddrinfo.c32
-rw-r--r--lib/libc/net/getnameinfo.c4
-rw-r--r--lib/libc/net/inet_net_ntop.c4
-rw-r--r--lib/libc/net/inet_net_pton.c3
-rw-r--r--lib/libc/net/inet_ntop.c6
-rw-r--r--lib/libc/net/name6.c4
-rw-r--r--lib/libc/net/rcmd.c12
7 files changed, 30 insertions, 35 deletions
diff --git a/lib/libc/net/getaddrinfo.c b/lib/libc/net/getaddrinfo.c
index e598bdb..2e0cbb7 100644
--- a/lib/libc/net/getaddrinfo.c
+++ b/lib/libc/net/getaddrinfo.c
@@ -218,18 +218,18 @@ struct res_target {
};
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 *,
- const char *, struct addrinfo **));
-static int explore_numeric __P((const struct addrinfo *, const char *,
- const char *, struct addrinfo **));
-static int explore_numeric_scope __P((const struct addrinfo *, const char *,
- const char *, struct addrinfo **));
-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 explore_fqdn(const struct addrinfo *, const char *,
+ const char *, struct addrinfo **);
+static int explore_null(const struct addrinfo *,
+ const char *, struct addrinfo **);
+static int explore_numeric(const struct addrinfo *, const char *,
+ const char *, struct addrinfo **);
+static int explore_numeric_scope(const struct addrinfo *, const char *,
+ const char *, struct addrinfo **);
+static int get_canonname(const struct addrinfo *,
+ struct addrinfo *, const char *);
+static struct addrinfo *get_ai(const struct addrinfo *,
+ const struct afd *, const char *);
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);
@@ -238,8 +238,8 @@ static int addrconfig(struct addrinfo *);
static int ip6_str2scopeid(char *, struct sockaddr_in6 *);
#endif
-static struct addrinfo *getanswer __P((const querybuf *, int, const char *, int,
- const struct addrinfo *));
+static struct addrinfo *getanswer(const querybuf *, int, const char *, int,
+ const struct addrinfo *);
static int _dns_getaddrinfo(void *, void *, va_list);
static void _sethtent(void);
static void _endhtent(void);
@@ -253,8 +253,8 @@ extern int _yp_check(char **);
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 *));
+static int res_querydomainN(const char *, const char *,
+ struct res_target *);
static char *ai_errlist[] = {
"Success",
diff --git a/lib/libc/net/getnameinfo.c b/lib/libc/net/getnameinfo.c
index f83cb91..7ca051c 100644
--- a/lib/libc/net/getnameinfo.c
+++ b/lib/libc/net/getnameinfo.c
@@ -81,8 +81,8 @@ struct sockinet {
};
#ifdef INET6
-static int ip6_parsenumeric __P((const struct sockaddr *, const char *, char *,
- size_t, int));
+static int ip6_parsenumeric(const struct sockaddr *, const char *, char *,
+ size_t, int);
static int ip6_sa2str(const struct sockaddr_in6 *, char *, size_t, int);
#endif
diff --git a/lib/libc/net/inet_net_ntop.c b/lib/libc/net/inet_net_ntop.c
index 4b30cb6..215ff1d 100644
--- a/lib/libc/net/inet_net_ntop.c
+++ b/lib/libc/net/inet_net_ntop.c
@@ -36,8 +36,8 @@ static const char rcsid[] = "$FreeBSD$";
# define SPRINTF(x) ((size_t)sprintf x)
#endif
-static char * inet_net_ntop_ipv4 __P((const u_char *src, int bits,
- char *dst, size_t size));
+static char * inet_net_ntop_ipv4(const u_char *src, int bits, char *dst,
+ size_t size);
/*
* char *
diff --git a/lib/libc/net/inet_net_pton.c b/lib/libc/net/inet_net_pton.c
index 04a45d4..5452d68 100644
--- a/lib/libc/net/inet_net_pton.c
+++ b/lib/libc/net/inet_net_pton.c
@@ -38,8 +38,7 @@ static const char rcsid[] = "$FreeBSD$";
# define SPRINTF(x) ((size_t)sprintf x)
#endif
-static int inet_net_pton_ipv4 __P((const char *src, u_char *dst,
- size_t size));
+static int inet_net_pton_ipv4(const char *src, u_char *dst, size_t size);
/*
* static int
diff --git a/lib/libc/net/inet_ntop.c b/lib/libc/net/inet_ntop.c
index 9dbe46b..4b1af69 100644
--- a/lib/libc/net/inet_ntop.c
+++ b/lib/libc/net/inet_ntop.c
@@ -38,10 +38,8 @@ __FBSDID("$FreeBSD$");
* sizeof(int) < 4. sizeof(int) > 4 is fine; all the world's not a VAX.
*/
-static const char *inet_ntop4 __P((const u_char *src, char *dst,
- socklen_t size));
-static const char *inet_ntop6 __P((const u_char *src, char *dst,
- socklen_t size));
+static const char *inet_ntop4(const u_char *src, char *dst, socklen_t size);
+static const char *inet_ntop6(const u_char *src, char *dst, socklen_t size);
/* char *
* inet_ntop(af, src, dst, size)
diff --git a/lib/libc/net/name6.c b/lib/libc/net/name6.c
index 405deda..2e445da 100644
--- a/lib/libc/net/name6.c
+++ b/lib/libc/net/name6.c
@@ -976,8 +976,8 @@ typedef union {
u_char buf[MAXPACKET];
} querybuf;
-static struct hostent *getanswer __P((const querybuf *, int, const char *,
- int, struct hostent *, int *));
+static struct hostent *getanswer(const querybuf *, int, const char *, int,
+ struct hostent *, int *);
/*
* we don't need to take care about sorting, nor IPv4 mapped address here.
diff --git a/lib/libc/net/rcmd.c b/lib/libc/net/rcmd.c
index 91bdf28..19a1f17 100644
--- a/lib/libc/net/rcmd.c
+++ b/lib/libc/net/rcmd.c
@@ -72,13 +72,11 @@ extern int innetgr( const char *, const char *, const char *, const char * );
#define max(a, b) ((a > b) ? a : b)
-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,
- const char *,const char *));
-static int __icheckhost __P((const struct sockaddr *, socklen_t,
- const char *));
+int __ivaliduser(FILE *, u_int32_t, const char *, const char *);
+int __ivaliduser_af(FILE *,const void *, const char *, const char *, int, int);
+int __ivaliduser_sa(FILE *, const struct sockaddr *, socklen_t, const char *,
+ const char *);
+static int __icheckhost(const struct sockaddr *, socklen_t, const char *);
char paddr[NI_MAXHOST];
OpenPOWER on IntegriCloud