From 13f78d96adf52101aa480e8c83d041f62fcfa1c8 Mon Sep 17 00:00:00 2001 From: Michael Kerrisk Date: Fri, 3 Aug 2012 08:10:17 +0200 Subject: getdents.2, select_tut.2, atof.3, atoi.3, pthread_create.3, pthread_sigmask.3, rtime.3, setbuf.3, tsearch.3, netlink.7: Remove unneeded casts Reported-by: Jan Engelhardt Signed-off-by: Michael Kerrisk --- man7/netlink.7 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'man7') diff --git a/man7/netlink.7 b/man7/netlink.7 index 2b60fe30..35016a28 100644 --- a/man7/netlink.7 +++ b/man7/netlink.7 @@ -417,10 +417,10 @@ in order to reliably track acknowledgements. .nf struct nlmsghdr *nh; /* The nlmsghdr with payload to send. */ struct sockaddr_nl sa; -struct iovec iov = { (void *) nh, nh\->nlmsg_len }; +struct iovec iov = { nh, nh\->nlmsg_len }; struct msghdr msg; -msg = { (void *)&sa, sizeof(sa), &iov, 1, NULL, 0, 0 }; +msg = { &sa, sizeof(sa), &iov, 1, NULL, 0, 0 }; memset(&sa, 0, sizeof(sa)); sa.nl_family = AF_NETLINK; nh\->nlmsg_pid = 0; @@ -443,7 +443,7 @@ struct sockaddr_nl sa; struct msghdr msg; struct nlmsghdr *nh; -msg = { (void *)&sa, sizeof(sa), &iov, 1, NULL, 0, 0 }; +msg = { &sa, sizeof(sa), &iov, 1, NULL, 0, 0 }; len = recvmsg(fd, &msg, 0); for (nh = (struct nlmsghdr *) buf; NLMSG_OK (nh, len); -- cgit v1.2.3