summaryrefslogtreecommitdiff
path: root/man7
diff options
context:
space:
mode:
authorMichael Kerrisk <mtk.manpages@gmail.com>2012-08-03 08:10:17 +0200
committerMichael Kerrisk <mtk.manpages@gmail.com>2012-08-03 10:33:49 +0200
commit13f78d96adf52101aa480e8c83d041f62fcfa1c8 (patch)
tree3cf26170a94292af9c971636ea37efb651be4c1a /man7
parentca302d0ee368b699ffec4cd465ee02f3ed9fe1a1 (diff)
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 <jengelh@medozas.de> Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
Diffstat (limited to 'man7')
-rw-r--r--man7/netlink.76
1 files changed, 3 insertions, 3 deletions
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);