From 6d6ba0ea8e97ed7cd73c3cf2fb25607d77fe20ea Mon Sep 17 00:00:00 2001 From: ru Date: Tue, 12 Jun 2001 14:00:39 +0000 Subject: Fixed printing of netatalk statistics WRT the -s flag. PR: bin/6994 Submitted by: Zahemszky Gabor MFC after: 1 week --- usr.bin/netstat/atalk.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'usr.bin/netstat') diff --git a/usr.bin/netstat/atalk.c b/usr.bin/netstat/atalk.c index b8071a1..e08d4a9 100644 --- a/usr.bin/netstat/atalk.c +++ b/usr.bin/netstat/atalk.c @@ -244,8 +244,8 @@ atalkprotopr(off, name) } } -#define ANY(x,y,z) \ - ((x) ? printf("\t%lu %s%s%s\n",x,y,plural(x),z) : 0) +#define ANY(x,y,z) if (x || sflag <= 1) \ + printf("\t%lu %s%s%s\n",x,y,plural(x),z) /* * Dump DDP statistics structure. -- cgit v1.1