[systemd-devel] [PATCH] libsystemd-bus: trivial macro KDBUS_PART_HEADER_SIZE replace

Yin Kangkai kangkai.yin at linux.intel.com
Tue Dec 10 17:41:47 PST 2013


On 2013-12-10, 20:56 +0100, Lennart Poettering wrote:
> On Wed, 04.12.13 15:28, Yin Kangkai (kangkai.yin at intel.com) wrote:
> 
> > It's a little bit cleaner(?) to replace offsetof(struct kdbus_item, data) with
> > KDBUS_PART_HEADER_SIZE.
> 
> Hmm, is this really cleaner? I kinda like using offsetof() for this,
> since it explains less opaquely what we are putting together here I
> think...

OK, thanks for your information.

Regards,
Kangkai


More information about the systemd-devel mailing list