]> CyberLeo.Net >> Repos - FreeBSD/stable/9.git/commit
MFC r232748:
authordim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 23 Mar 2012 10:58:35 +0000 (10:58 +0000)
committerdim <dim@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 23 Mar 2012 10:58:35 +0000 (10:58 +0000)
commit7827196ae3e00b1bf454cc57072d61bd27a1a5ad
tree4f85dfefa11a4a02bd2a84a90800ed921992debe
parentd580ea90c3ec9fabab9930d7d179c94048a7ae70
MFC r232748:

After r232745, which makes sure __bswap16(), ntohs() and htons() return
__uint16_t, we can partially undo r228668.

Note the remark "Work around a clang false positive with format string
warnings and ntohs macros (see LLVM PR 11313)" was actually incorrect.

Before r232745, on some arches, the ntohs() macros did in fact return
int, not uint16_t, so clang was right in warning about the %hu format
string.

git-svn-id: svn://svn.freebsd.org/base/stable/9@233350 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
usr.bin/netstat/Makefile