]> xenbits.xensource.com Git - libvirt.git/commit
nss: Make aligning look nicer
authorMartin Kletzander <mkletzan@redhat.com>
Fri, 18 Mar 2016 15:46:41 +0000 (16:46 +0100)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 21 Mar 2016 19:55:00 +0000 (20:55 +0100)
commitdc56475f72b2c220443154b33fee221099eeec7f
tree90e6b8e260433106ae71bbf97fdc9b6af3e3cf35
parenta8dc3ac28acbdbb20deec0accec9d0d75aaca631
nss: Make aligning look nicer

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>
tools/nss/libvirt_nss.c