diff options
Diffstat (limited to 'usr.bin/netstat/ns.c')
-rw-r--r-- | usr.bin/netstat/ns.c | 26 |
1 files changed, 8 insertions, 18 deletions
diff --git a/usr.bin/netstat/ns.c b/usr.bin/netstat/ns.c index 95f401b..041282f 100644 --- a/usr.bin/netstat/ns.c +++ b/usr.bin/netstat/ns.c @@ -72,8 +72,8 @@ struct nspcb nspcb; struct sppcb sppcb; struct socket sockb; -static char *ns_prpr __P((struct ns_addr *)); -static void ns_erputil __P((int, int)); +static char *ns_prpr (struct ns_addr *); +static void ns_erputil (int, int); static int first = 1; @@ -85,9 +85,7 @@ static int first = 1; */ void -nsprotopr(off, name) - u_long off; - char *name; +nsprotopr(u_long off, char *name) { struct nspcb cb; register struct nspcb *prev, *next; @@ -160,9 +158,7 @@ nsprotopr(off, name) * Dump SPP statistics structure. */ void -spp_stats(off, name) - u_long off; - char *name; +spp_stats(u_long off, char *name) { struct spp_istat spp_istat; #define sppstat spp_istat.newstats @@ -238,9 +234,7 @@ spp_stats(off, name) * Dump IDP statistics structure. */ void -idp_stats(off, name) - u_long off; - char *name; +idp_stats(u_long off, char *name) { struct idpstat idpstat; @@ -274,9 +268,7 @@ static struct { */ /*ARGSUSED*/ void -nserr_stats(off, name) - u_long off; - char *name; +nserr_stats(u_long off, char *name) { struct ns_errstat ns_errstat; register int j; @@ -317,8 +309,7 @@ nserr_stats(off, name) } static void -ns_erputil(z, c) - int z, c; +ns_erputil(int z, int c) { int j; char codebuf[30]; @@ -345,8 +336,7 @@ ns_erputil(z, c) static struct sockaddr_ns ssns = {AF_NS}; static -char *ns_prpr(x) - struct ns_addr *x; +char *ns_prpr(struct ns_addr *x) { struct sockaddr_ns *sns = &ssns; |