aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/netstat/inet6.c
diff options
context:
space:
mode:
authorAssar Westerlund <assar@FreeBSD.org>2001-06-15 01:53:05 +0000
committerAssar Westerlund <assar@FreeBSD.org>2001-06-15 01:53:05 +0000
commitaf7a0a2d2b9546d0fc4f33f1ea8fb7b126392832 (patch)
tree666b4e33ec4d151eeee57b69cec4f8ec59d4c008 /usr.bin/netstat/inet6.c
parent70439d2750be7d38ffabf4139940abb1eb211cd6 (diff)
Notes
Diffstat (limited to 'usr.bin/netstat/inet6.c')
-rw-r--r--usr.bin/netstat/inet6.c31
1 files changed, 8 insertions, 23 deletions
diff --git a/usr.bin/netstat/inet6.c b/usr.bin/netstat/inet6.c
index e027d7ffaefe..fbc905f3c056 100644
--- a/usr.bin/netstat/inet6.c
+++ b/usr.bin/netstat/inet6.c
@@ -340,9 +340,7 @@ static char *ip6nh[] = {
* Dump IP6 statistics structure.
*/
void
-ip6_stats(off, name)
- u_long off;
- char *name;
+ip6_stats(u_long off __unused, char *name, int af __unused)
{
struct ip6stat ip6stat;
int first, i;
@@ -494,8 +492,7 @@ ip6_stats(off, name)
* Dump IPv6 per-interface statistics based on RFC 2465.
*/
void
-ip6_ifstats(ifname)
- char *ifname;
+ip6_ifstats(char *ifname)
{
struct in6_ifreq ifr;
int s;
@@ -810,9 +807,7 @@ static char *icmp6names[] = {
* Dump ICMP6 statistics.
*/
void
-icmp6_stats(off, name)
- u_long off;
- char *name;
+icmp6_stats(u_long off __unused, char *name, int af __unused)
{
struct icmp6stat icmp6stat;
register int i, first;
@@ -885,8 +880,7 @@ icmp6_stats(off, name)
* Dump ICMPv6 per-interface statistics based on RFC 2466.
*/
void
-icmp6_ifstats(ifname)
- char *ifname;
+icmp6_ifstats(char *ifname)
{
struct in6_ifreq ifr;
int s;
@@ -951,9 +945,7 @@ icmp6_ifstats(ifname)
* Dump PIM statistics structure.
*/
void
-pim6_stats(off, name)
- u_long off;
- char *name;
+pim6_stats(u_long off __unused, char *name, int af __unused)
{
struct pim6stat pim6stat;
@@ -978,9 +970,7 @@ pim6_stats(off, name)
* Dump raw ip6 statistics structure.
*/
void
-rip6_stats(off, name)
- u_long off;
- char *name;
+rip6_stats(u_long off __unused, char *name, int af __unused)
{
struct rip6stat rip6stat;
u_quad_t delivered;
@@ -1035,11 +1025,7 @@ rip6_stats(off, name)
};
void
-inet6print(in6, port, proto, numeric)
- register struct in6_addr *in6;
- int port;
- char *proto;
- int numeric;
+inet6print(struct in6_addr *in6, int port, char *proto, int numeric)
{
struct servent *sp = 0;
char line[80], *cp;
@@ -1065,8 +1051,7 @@ inet6print(in6, port, proto, numeric)
*/
char *
-inet6name(in6p)
- struct in6_addr *in6p;
+inet6name(struct in6_addr *in6p)
{
register char *cp;
static char line[50];