Re: [libvirt] [PATCH v2] nss: Make aligning look nicer

2016-03-21 Thread Martin Kletzander
On Mon, Mar 21, 2016 at 02:20:21PM -0400, Cole Robinson wrote: Fixes arm32 build failures for me I though I pushed it and apparently, I didn't. Fixed now. Thanks, Cole On 03/21/2016 07:57 AM, Martin Kletzander wrote: Every aligning requires at least one cast and it's hard to read. Let's

Re: [libvirt] [PATCH v2] nss: Make aligning look nicer

2016-03-21 Thread Cole Robinson
Fixes arm32 build failures for me Thanks, Cole On 03/21/2016 07:57 AM, 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 bu

Re: [libvirt] [PATCH v2] nss: Make aligning look nicer

2016-03-21 Thread Michal Privoznik
On 21.03.2016 12:57, 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 Kletzander > --- >

[libvirt] [PATCH v2] nss: Make aligning look nicer

2016-03-21 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 --- v2: - Initialize @idx in _nss_libvirt_gethostbyname4_r as