]> The Tcpdump Group git mirrors - tcpdump/commit
Throw in "& 0xf" to quiet Coverity's anxieties.
authorGuy Harris <[email protected]>
Wed, 3 Jul 2019 07:33:25 +0000 (00:33 -0700)
committerGuy Harris <[email protected]>
Wed, 3 Jul 2019 07:33:25 +0000 (00:33 -0700)
commitf477e59db0ccc87707e8c4e3ea2868439fad487f
treec655ec5a91a7c14aa20325b2d9be9e0823e7dc74
parentcee18d339ad10857bb5b546a1725744a39b113fe
Throw in "& 0xf" to quiet Coverity's anxieties.

The compiler on my Mac (a Clang release) appears to know enough not to
waste the CPU's time ANDing a value between 0 and 15 with 0xf, even
though the lack of that ANDing appears to give Coverity sleepless
nights.

This should squelch a pile of CIDs.  It also stuffs the
octet-to-two-hex-digits code into an inline routine.
addrtoname.c