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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]