diff options
author | dim <dim@FreeBSD.org> | 2011-12-17 17:21:47 +0000 |
---|---|---|
committer | dim <dim@FreeBSD.org> | 2011-12-17 17:21:47 +0000 |
commit | 04297626e548cde8b210bfa6fa8505396d09a969 (patch) | |
tree | 4f37e2d0f9863f034f81842daf0803cfb96156d1 /usr.bin/netstat | |
parent | aececc303349457be3b2355ad7532229bdab60cc (diff) | |
download | FreeBSD-src-04297626e548cde8b210bfa6fa8505396d09a969.zip FreeBSD-src-04297626e548cde8b210bfa6fa8505396d09a969.tar.gz |
In usr.bin/netstat/atalk.c, work around a clang false positive with
printf format warnings and conditional operators.
MFC after: 1 week
Diffstat (limited to 'usr.bin/netstat')
-rw-r--r-- | usr.bin/netstat/atalk.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/netstat/atalk.c b/usr.bin/netstat/atalk.c index dc1de3f..ec40e25 100644 --- a/usr.bin/netstat/atalk.c +++ b/usr.bin/netstat/atalk.c @@ -81,7 +81,7 @@ static char mybuf[50]; return("*"); } } - sprintf(mybuf,"%hu",ntohs(sat->sat_addr.s_net)); + sprintf(mybuf,"%hu",(short)ntohs(sat->sat_addr.s_net)); return mybuf; } |