summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/nlmsg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nlmsg.c b/src/nlmsg.c
index 68c1902..4450cf5 100644
--- a/src/nlmsg.c
+++ b/src/nlmsg.c
@@ -203,7 +203,7 @@ struct nlmsghdr *mnl_nlmsg_next(const struct nlmsghdr *nlh, int *len)
*/
void *mnl_nlmsg_get_payload_tail(const struct nlmsghdr *nlh)
{
- return (struct nlmsghdr *)((void *)nlh + MNL_ALIGN(nlh->nlmsg_len));
+ return (void *)nlh + MNL_ALIGN(nlh->nlmsg_len);
}
/**