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(a)redhat.com>
---
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