summaryrefslogtreecommitdiffstats
path: root/usr.bin/netstat/ipx.c
diff options
context:
space:
mode:
authorcharnier <charnier@FreeBSD.org>2004-07-26 20:18:11 +0000
committercharnier <charnier@FreeBSD.org>2004-07-26 20:18:11 +0000
commitcd48a1d32b7e37d716e9ca0da9ba773994c976b3 (patch)
tree4c45a009fc2c7e4c27551e4a0c106d7a27aef7f7 /usr.bin/netstat/ipx.c
parent0a8bce8ca9483bbe6dfb9ac58016a4397d080ee3 (diff)
downloadFreeBSD-src-cd48a1d32b7e37d716e9ca0da9ba773994c976b3.zip
FreeBSD-src-cd48a1d32b7e37d716e9ca0da9ba773994c976b3.tar.gz
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.
Diffstat (limited to 'usr.bin/netstat/ipx.c')
-rw-r--r--usr.bin/netstat/ipx.c11
1 files changed, 6 insertions, 5 deletions
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 <sys/cdefs.h>
+__FBSDID("$FreeBSD$");
#include <sys/param.h>
#include <sys/queue.h>
@@ -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
OpenPOWER on IntegriCloud