From 43610bd6217cd8b38455ea9af6783fc04547929f Mon Sep 17 00:00:00 2001 From: Gary Bisson Date: Thu, 28 May 2020 15:05:56 +0200 Subject: [PATCH] Fix arithmetic on a pointer warning Signed-off-by: Gary Bisson --- cangw.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cangw.c b/cangw.c index 981f1dc..715a44f 100644 --- a/cangw.c +++ b/cangw.c @@ -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)