svn commit: r228650 - head/usr.bin/netstat
Bjoern A. Zeeb
bzeeb-lists at lists.zabbadoz.net
Sat Dec 17 21:54:01 UTC 2011
On 17. Dec 2011, at 17:21 , Dimitry Andric wrote:
> Author: dim
> Date: Sat Dec 17 17:21:47 2011
> New Revision: 228650
> URL: http://svn.freebsd.org/changeset/base/228650
>
> Log:
> In usr.bin/netstat/atalk.c, work around a clang false positive with
> printf format warnings and conditional operators.
>
This does not sound like a good idea. Make clang work.
> MFC after: 1 week
>
> Modified:
> head/usr.bin/netstat/atalk.c
>
> Modified: head/usr.bin/netstat/atalk.c
> ==============================================================================
> --- head/usr.bin/netstat/atalk.c Sat Dec 17 17:04:30 2011 (r228649)
> +++ head/usr.bin/netstat/atalk.c Sat Dec 17 17:21:47 2011 (r228650)
> @@ -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;
> }
>
--
Bjoern A. Zeeb You have to have visions!
Stop bit received. Insert coin for new address family.
More information about the svn-src-all
mailing list