[PATCH 01/30] Fix clang warning for ntohl(*((uint32_t *)buf))

[email protected] <[email protected]>
Newsgroups dev.linux.lists.lvm-devel
Message-ID <87y69m61vj.wl%[email protected]>
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 <[email protected]>

Ack
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.