src/vzlist.c: fix compiler warning
clang gives the following:
CC vzlist.o
vzlist.c:426:3: warning: cast from 'char *' to 'unsigned long *' increases
required alignment from 1 to 8 [-Wcast-align]
(unsigned long *)((char *)(p->ubc) + res_off) : NULL;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
vzlist.c:485:3: warning: cast from 'char *' to 'unsigned long *' increases
required alignment from 1 to 8 [-Wcast-align]
(unsigned long *)((char *)(p->quota) + res_off) : NULL;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 warnings generated.
Fix it.
Signed-off-by: Kir Kolyshkin <kir@openvz.org>
1 file changed