diff options
author | assar <assar@FreeBSD.org> | 2001-06-15 23:35:13 +0000 |
---|---|---|
committer | assar <assar@FreeBSD.org> | 2001-06-15 23:35:13 +0000 |
commit | ee746c97f9f42b279e24583560b4f0eaef1e081b (patch) | |
tree | be8dfc77df9326b0c2d3ba9f0c53529e94f411ce /usr.bin/netstat/inet.c | |
parent | 16333bcfca3555bf1ca7a34e59b4cf193053a97a (diff) | |
download | FreeBSD-src-ee746c97f9f42b279e24583560b4f0eaef1e081b.zip FreeBSD-src-ee746c97f9f42b279e24583560b4f0eaef1e081b.tar.gz |
remove K&R support
Diffstat (limited to 'usr.bin/netstat/inet.c')
-rw-r--r-- | usr.bin/netstat/inet.c | 41 |
1 files changed, 12 insertions, 29 deletions
diff --git a/usr.bin/netstat/inet.c b/usr.bin/netstat/inet.c index ebbab35..194c60c 100644 --- a/usr.bin/netstat/inet.c +++ b/usr.bin/netstat/inet.c @@ -80,10 +80,10 @@ static const char rcsid[] = #include <unistd.h> #include "netstat.h" -char *inetname __P((struct in_addr *)); -void inetprint __P((struct in_addr *, int, char *, int)); +char *inetname (struct in_addr *); +void inetprint (struct in_addr *, int, char *, int); #ifdef INET6 -extern void inet6print __P((struct in6_addr *, int, char *, int)); +extern void inet6print (struct in6_addr *, int, char *, int); static int udp_done, tcp_done; #endif /* INET6 */ @@ -94,10 +94,8 @@ static int udp_done, tcp_done; * -a (all) flag is specified. */ void -protopr(proto, name, af) - u_long proto; /* for sysctl version we pass proto # */ - char *name; - int af; +protopr(u_long proto, /* for sysctl version we pass proto # */ + char *name, int af) { int istcp; static int first = 1; @@ -348,9 +346,7 @@ protopr(proto, name, af) * Dump TCP statistics structure. */ void -tcp_stats(off, name) - u_long off; - char *name; +tcp_stats(u_long off, char *name) { struct tcpstat tcpstat; size_t len = sizeof tcpstat; @@ -448,9 +444,7 @@ tcp_stats(off, name) * Dump UDP statistics structure. */ void -udp_stats(off, name) - u_long off; - char *name; +udp_stats(u_long off, char *name) { struct udpstat udpstat; size_t len = sizeof udpstat; @@ -501,9 +495,7 @@ udp_stats(off, name) * Dump IP statistics structure. */ void -ip_stats(off, name) - u_long off; - char *name; +ip_stats(u_long off, char *name) { struct ipstat ipstat; size_t len = sizeof ipstat; @@ -583,9 +575,7 @@ static char *icmpnames[] = { * Dump ICMP statistics. */ void -icmp_stats(off, name) - u_long off; - char *name; +icmp_stats(u_long off, char *name) { struct icmpstat icmpstat; int i, first; @@ -651,9 +641,7 @@ icmp_stats(off, name) * Dump IGMP statistics structure. */ void -igmp_stats(off, name) - u_long off; - char *name; +igmp_stats(u_long off, char *name) { struct igmpstat igmpstat; size_t len = sizeof igmpstat; @@ -686,11 +674,7 @@ igmp_stats(off, name) * Pretty print an Internet address (net address + port). */ void -inetprint(in, port, proto, numeric_port) - register struct in_addr *in; - int port; - char *proto; - int numeric_port; +inetprint(struct in_addr *in, int port, char *proto, int numeric_port) { struct servent *sp = 0; char line[80], *cp; @@ -720,8 +704,7 @@ inetprint(in, port, proto, numeric_port) * numeric value, otherwise try for symbolic name. */ char * -inetname(inp) - struct in_addr *inp; +inetname(struct in_addr *inp) { register char *cp; static char line[MAXHOSTNAMELEN]; |