dhcp6: prefer offsetof() over sizeof() for structs with undefined sizes
authorLennart Poettering <lennart@poettering.net>
Fri, 19 Oct 2018 10:14:22 +0000 (12:14 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 25 Oct 2018 09:23:19 +0000 (11:23 +0200)
commit20b55f853847378b85561a4e299604d27b5cd25b
tree04d88fcbf01dabc9e44bb454764d2d9e4c255e46
parent4dac5eaba4e419b29c97da38a8b1f82336c2c892
dhcp6: prefer offsetof() over sizeof() for structs with undefined sizes

This doesn't change anything in the generated source, but I think makes
semantically more sense, as these structures have undefined size, and we
only want to know the size up to the data field in these cases.
src/libsystemd-network/dhcp6-option.c