From cd48a1d32b7e37d716e9ca0da9ba773994c976b3 Mon Sep 17 00:00:00 2001 From: charnier Date: Mon, 26 Jul 2004 20:18:11 +0000 Subject: Add __FBSDID. Replace local variable sin by sockin to not conflict with sin(3). Use warnx() instead of warn() when error message is not of any interest. Add prototypes. --- usr.bin/netstat/ipx.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'usr.bin/netstat/ipx.c') diff --git a/usr.bin/netstat/ipx.c b/usr.bin/netstat/ipx.c index 2ab359a..b4f2940 100644 --- a/usr.bin/netstat/ipx.c +++ b/usr.bin/netstat/ipx.c @@ -31,13 +31,14 @@ * SUCH DAMAGE. */ +#if 0 #ifndef lint -/* static char sccsid[] = "@(#)ns.c 8.1 (Berkeley) 6/6/93"; -*/ -static const char rcsid[] = - "$FreeBSD$"; #endif /* not lint */ +#endif + +#include +__FBSDID("$FreeBSD$"); #include #include @@ -74,6 +75,7 @@ struct socket sockb; static char *ipx_prpr (struct ipx_addr *); static int first = 1; +extern char *tcpstates[]; /* * Print a summary of connections related to a Network Systems @@ -139,7 +141,6 @@ ipxprotopr(u_long off, const char *name, int af1 __unused) printf(Aflag?" %-18.18s":" %-22.22s", ipx_prpr(&ipxpcb.ipxp_laddr)); printf(Aflag?" %-18.18s":" %-22.22s", ipx_prpr(&ipxpcb.ipxp_faddr)); if (isspx) { - extern char *tcpstates[]; if (spxpcb.s_state >= TCP_NSTATES) printf(" %d", spxpcb.s_state); else -- cgit v1.1