sd-dhcp6-client: Use offsetof() instead of sizeof()
authorPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 15 Jan 2018 15:37:52 +0000 (17:37 +0200)
committerPatrik Flykt <patrik.flykt@linux.intel.com>
Mon, 15 Jan 2018 16:00:33 +0000 (18:00 +0200)
commitecf07fb748b76c182d0441366593f3c795f76578
treeb424ccf5c18c4386aff8f9a291a8f58c2265bcc9
parent3c03564911d2e0b6e838fa40ba92716367bf17ed
sd-dhcp6-client: Use offsetof() instead of sizeof()

The slightly modified review comments say that "...in theory
offsetof(DHCP6Option, data) is nicer than sizeof(DHCP6Option)
because the former removes alignment artifacts. In this
specific case there are no alignment whitespaces hence it's
fine, but out of a matter of principle offsetof() is preferred
over sizeof() in cases like this..."
src/libsystemd-network/sd-dhcp6-client.c