[libvirt] [PATCH v2] nss: Make aligning look nicer
Michal Privoznik
mprivozn at redhat.com
Mon Mar 21 12:44:59 UTC 2016
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 at 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
More information about the libvir-list
mailing list