In usr.bin/netstat/atalk.c, work around a clang false positive with

printf format warnings and conditional operators.

MFC after:	1 week
This commit is contained in:
Dimitry Andric 2011-12-17 17:21:47 +00:00
parent d411ccb3b2
commit 288fcda320
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=228650

View File

@ -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;
}