Fix arithmetic on a pointer warning

Signed-off-by: Gary Bisson <gary.bisson@boundarydevices.com>
This commit is contained in:
Gary Bisson
2020-05-28 20:54:37 +02:00
committed by Oliver Hartkopp
parent 46895a41c5
commit 43610bd621
+1 -1
View File
@@ -80,7 +80,7 @@ struct fdmodattr {
/* some netlink helpers stolen from iproute2 package */
#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 alen)