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

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



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 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


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