]> sourceware.org Git - lvm2.git/commit
Fix clang warning for ntohl(*((uint32_t *)buf))
authorZdenek Kabelac <zkabelac@redhat.com>
Mon, 25 Oct 2010 11:57:06 +0000 (11:57 +0000)
committerZdenek Kabelac <zkabelac@redhat.com>
Mon, 25 Oct 2010 11:57:06 +0000 (11:57 +0000)
commitd80f8cf41bf4d8bae6bf3802018be5e83bc976ff
treeb5611bfedf74aaac497f84d5d62b4932c463952b
parent1b7750c4bdaa0d23c4962937eddc3ad18af50f4b
Fix clang warning for ntohl(*((uint32_t *)buf))

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.
WHATS_NEW
daemons/dmeventd/dmeventd.c
daemons/dmeventd/libdevmapper-event.c
This page took 0.033755 seconds and 5 git commands to generate.