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 <mkletzan@xxxxxxxxxx> > --- > v2: > - Initialize @idx in _nss_libvirt_gethostbyname4_r as well > > tools/nss/libvirt_nss.c | 53 +++++++++++++++++++++++++++++++------------------ > 1 file changed, 34 insertions(+), 19 deletions(-) ACK Michal -- libvir-list mailing list libvir-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/libvir-list