[PATCH 01/30] Fix clang warning for ntohl(*((uint32_t *)buf))
| 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