summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/if.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/netstat/if.c')
-rw-r--r--usr.bin/netstat/if.c26
1 files changed, 8 insertions, 18 deletions
diff --git a/usr.bin/netstat/if.c b/usr.bin/netstat/if.c
index bddf6c1..fa491a3 100644
--- a/usr.bin/netstat/if.c
+++ b/usr.bin/netstat/if.c
@@ -76,11 +76,11 @@ static const char rcsid[] =
#define YES 1
#define NO 0
-static void sidewaysintpr __P((u_int, u_long));
-static void catchalarm __P((int));
+static void sidewaysintpr (u_int, u_long);
+static void catchalarm (int);
#ifdef INET6
-char *netname6 __P((struct sockaddr_in6 *, struct in6_addr *));
+char *netname6 (struct sockaddr_in6 *, struct in6_addr *);
static char ntop_buf[INET6_ADDRSTRLEN]; /* for inet_ntop() */
static int bdg_done;
#endif
@@ -131,12 +131,8 @@ bdg_stats(u_long dummy, char *name) /* print bridge statistics */
/*
* Display a formatted value, or a '-' in the same space.
*/
-void
-show_stat(fmt, width, value, showvalue)
- char *fmt;
- int width;
- u_long value;
- short showvalue;
+static void
+show_stat(char *fmt, int width, u_long value, short showvalue)
{
char newfmt[32];
@@ -156,10 +152,7 @@ show_stat(fmt, width, value, showvalue)
* Print a description of the network interfaces.
*/
void
-intpr(interval, ifnetaddr, pfunc)
- int interval;
- u_long ifnetaddr;
- void (*pfunc)(char *);
+intpr(int interval, u_long ifnetaddr, void (*pfunc)(char *))
{
struct ifnet ifnet;
struct ifnethead ifnethead;
@@ -514,9 +507,7 @@ u_char signalled; /* set if alarm goes off "early" */
* XXX - should be rewritten to use ifmib(4).
*/
static void
-sidewaysintpr(interval, off)
- unsigned interval;
- u_long off;
+sidewaysintpr(unsigned interval, u_long off)
{
struct ifnet ifnet;
u_long firstifnet;
@@ -679,8 +670,7 @@ loop:
* Sets a flag to not wait for the alarm.
*/
static void
-catchalarm(signo)
- int signo;
+catchalarm(int signo)
{
signalled = YES;
}
OpenPOWER on IntegriCloud