diff options
-rw-r--r-- | usr.bin/netstat/ipx.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/usr.bin/netstat/ipx.c b/usr.bin/netstat/ipx.c index 3495ada..8f7c1ba 100644 --- a/usr.bin/netstat/ipx.c +++ b/usr.bin/netstat/ipx.c @@ -152,8 +152,10 @@ ipxprotopr(off, name) } } -#define ANY(x,y,z) (printf("\t%u %s%s%s\n",x,y,plural(x),z)) -#define ANYl(x,y,z) (printf("\t%lu %s%s%s\n",x,y,plural(x),z)) +#define ANY(x,y,z) \ + if (x || sflag <= 1) printf("\t%u %s%s%s\n", x, y, plural(x), z) +#define ANYl(x,y,z) \ + if (x || sflag <= 1) printf("\t%lu %s%s%s\n", x, y, plural(x), z) /* * Dump SPX statistics structure. |