lvm - get rid of gcc-only cruft
authorAlex Hornung <ahornung@gmail.com>
Mon, 19 Jul 2010 21:40:35 +0000 (22:40 +0100)
committerAlex Hornung <ahornung@gmail.com>
Mon, 19 Jul 2010 22:23:09 +0000 (23:23 +0100)
commit9c0b8ae76e09b63dd26c2ef20050734863fb221a
tree6d89027e25be1586b92673d3e6b8dfb4aedfdb78
parentcb772f36f3b1a772fad83bb0b968776358491a21
lvm - get rid of gcc-only cruft

* replace the subtraction of members of unions and structs with the
  standard use of offsetof.

* This allows lvm to be compiled by clang.

Reported-by: Sascha Wildner
contrib/lvm2/dist/lib/report/report.c