summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/ipsec.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/netstat/ipsec.c')
-rw-r--r--usr.bin/netstat/ipsec.c32
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;
OpenPOWER on IntegriCloud