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/ipsec.c | |
parent | 16333bcfca3555bf1ca7a34e59b4cf193053a97a (diff) | |
download | FreeBSD-src-ee746c97f9f42b279e24583560b4f0eaef1e081b.zip FreeBSD-src-ee746c97f9f42b279e24583560b4f0eaef1e081b.tar.gz |
remove K&R support
Diffstat (limited to 'usr.bin/netstat/ipsec.c')
-rw-r--r-- | usr.bin/netstat/ipsec.c | 32 |
1 files changed, 13 insertions, 19 deletions
diff --git a/usr.bin/netstat/ipsec.c b/usr.bin/netstat/ipsec.c index 6037d13..a82ad13 100644 --- a/usr.bin/netstat/ipsec.c +++ b/usr.bin/netstat/ipsec.c @@ -159,21 +159,20 @@ static const char *pfkey_msgtypenames[] = { static struct ipsecstat ipsecstat; -static void print_ipsecstats __P((void)); -static const char *pfkey_msgtype_names __P((int)); -static void ipsec_hist __P((const u_quad_t *, size_t, const struct val2str *, - size_t, const char *)); +static void print_ipsecstats (void); +static const char *pfkey_msgtype_names (int); +static void ipsec_hist (const u_quad_t *, size_t, const struct val2str *, + size_t, const char *); /* * Dump IPSEC statistics structure. */ static void -ipsec_hist(hist, histmax, name, namemax, title) - const u_quad_t *hist; - size_t histmax; - const struct val2str *name; - size_t namemax; - const char *title; +ipsec_hist(const u_quad_t *hist, + size_t histmax, + const struct val2str *name, + size_t namemax, + const char *title) { int first; size_t proto; @@ -201,7 +200,7 @@ ipsec_hist(hist, histmax, name, namemax, title) } static void -print_ipsecstats() +print_ipsecstats(void) { #define p(f, m) if (ipsecstat.f || sflag <= 1) \ printf(m, (CAST)ipsecstat.f, plural(ipsecstat.f)) @@ -238,9 +237,7 @@ print_ipsecstats() } void -ipsec_stats(off, name) - u_long off; - char *name; +ipsec_stats(u_long off, char *name) { if (off == 0) return; @@ -251,8 +248,7 @@ ipsec_stats(off, name) } static const char * -pfkey_msgtype_names(x) - int x; +pfkey_msgtype_names(int x) { const int max = sizeof(pfkey_msgtypenames)/sizeof(pfkey_msgtypenames[0]); @@ -265,9 +261,7 @@ pfkey_msgtype_names(x) } void -pfkey_stats(off, name) - u_long off; - char *name; +pfkey_stats(u_long off, char *name) { struct pfkeystat pfkeystat; int first, type; |