diff options
| author | Rodney W. Grimes <rgrimes@FreeBSD.org> | 1995-05-30 06:41:30 +0000 |
|---|---|---|
| committer | Rodney W. Grimes <rgrimes@FreeBSD.org> | 1995-05-30 06:41:30 +0000 |
| commit | 7799f52a32f592a7efe259bc3411ba52d13db797 (patch) | |
| tree | 350f6f98843363254f9afe467ae0c92d5a9d7f43 /usr.bin/netstat | |
| parent | 5ebc7e6281887681c3a348a5a4c902e262ccd656 (diff) | |
Notes
Diffstat (limited to 'usr.bin/netstat')
| -rw-r--r-- | usr.bin/netstat/main.c | 2 | ||||
| -rw-r--r-- | usr.bin/netstat/route.c | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/netstat/main.c b/usr.bin/netstat/main.c index ac2287dde678..5e59f374047c 100644 --- a/usr.bin/netstat/main.c +++ b/usr.bin/netstat/main.c @@ -261,7 +261,7 @@ main(argc, argv) break; case 'p': if ((tp = name2protox(optarg)) == NULL) { - errx(1, + errx(1, "%s: unknown or uninstrumented protocol", optarg); } diff --git a/usr.bin/netstat/route.c b/usr.bin/netstat/route.c index 7e6fa3a52df0..ebb442a194e1 100644 --- a/usr.bin/netstat/route.c +++ b/usr.bin/netstat/route.c @@ -36,7 +36,7 @@ static char sccsid[] = "From: @(#)route.c 8.3 (Berkeley) 3/9/94"; #endif static const char rcsid[] = - "$Id: route.c,v 1.3 1995/01/23 20:19:16 wollman Exp $"; + "$Id: route.c,v 1.4 1995/04/06 06:09:44 jkh Exp $"; #endif /* not lint */ #include <sys/param.h> @@ -480,13 +480,13 @@ p_rtentry(rt) if(rt->rt_rmx.rmx_expire) { time_t expire_time; - if ((expire_time + if ((expire_time =rt->rt_rmx.rmx_expire - time((time_t *)0)) > 0) printf(" %8.8s %6d%s", prettyname, expire_time, rt->rt_nodes[0].rn_dupedkey ? " =>" : ""); } else { - printf(" %8.8s%s", prettyname, + printf(" %8.8s%s", prettyname, rt->rt_nodes[0].rn_dupedkey ? " =>" : ""); } |
