Review for 5007142/6717509 lint fix
Dan Anderson
opensolaris at drydog.com
Thu Aug 28 10:18:05 PDT 2008
On Thu, 28 Aug 2008, Garrett D'Amore wrote:
> You can cast through a void * to eliminate the error.
> -- Garrett
Hmmm. OK--tell me how. It's already being cast. Here's some real examples, given:
uint32_t left;
uint8_t *block;
402 /* LINTED E_BAD_PTR_CAST_ALIGN */
403 left = htonl(*(uint32_t *)&block[0]);
. . .
452 /* LINTED E_BAD_PTR_CAST_ALIGN */
453 *(uint32_t *)&block[0] = htonl(left);
--
This message posted from opensolaris.org
More information about the crypto-discuss
mailing list