Re: [libvirt] [PATCH 2/2] nss: Make aligning look nicer

2016-03-21 Thread Peter Krempa
On Fri, Mar 18, 2016 at 17:42:29 +0100, Martin Kletzander wrote: > Every aligning requires at least one cast and it's hard to read. Let's > make a function that makes sure the pointer is moved according to the > alignment and use that to move throughout the data buffer. > > Signed-off-by: Martin

[libvirt] [PATCH 2/2] nss: Make aligning look nicer

2016-03-20 Thread Martin Kletzander
Every aligning requires at least one cast and it's hard to read. Let's make a function that makes sure the pointer is moved according to the alignment and use that to move throughout the data buffer. Signed-off-by: Martin Kletzander --- tools/nss/libvirt_nss.c | 51 +