Fix arithmetic on a pointer warning

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
pull/208/head
Gary Bisson 2020-05-28 15:05:56 +02:00 committed by Oliver Hartkopp
parent 46895a41c5
commit 43610bd621
1 changed files with 1 additions and 1 deletions

View File

@ -80,7 +80,7 @@ struct fdmodattr {
/* some netlink helpers stolen from iproute2 package */ /* some netlink helpers stolen from iproute2 package */
#define NLMSG_TAIL(nmsg) \ #define NLMSG_TAIL(nmsg) \
((struct rtattr *)(((void *) (nmsg)) + NLMSG_ALIGN((nmsg)->nlmsg_len))) ((struct rtattr *)(((char *) (nmsg)) + NLMSG_ALIGN((nmsg)->nlmsg_len)))
int addattr_l(struct nlmsghdr *n, int maxlen, int type, const void *data, int addattr_l(struct nlmsghdr *n, int maxlen, int type, const void *data,
int alen) int alen)