[lvm-devel] [PATCH 01/30] Fix clang warning for ntohl(*((uint32_t *)buf))
ejt at redhat.com
ejt at redhat.com
Mon Oct 25 09:46:40 UTC 2010
At Mon, 25 Oct 2010 10:24:08 +0200,
Zdenek Kabelac wrote:
>
> We cast (char*) to (uint32_t*) that changes alignment requierements.
> For our case the code has been correct as alloca() returns properly
> aligned buffer, however this patch make it cleaner and more readable
> and avoids warning generation.
>
> FIXME: code duplication
>
> Signed-off-by: Zdenek Kabelac <zkabelac at redhat.com>
Ack
More information about the lvm-devel
mailing list