From 81092cde12affb71cfa0c02b9510ae1e3d492b80 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Sat, 6 Nov 2010 01:00:24 +0100 Subject: src: remove redundant casts Signed-off-by: Jan Engelhardt --- src/iftable.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/iftable.c') diff --git a/src/iftable.c b/src/iftable.c index c3a8448..959249a 100644 --- a/src/iftable.c +++ b/src/iftable.c @@ -55,7 +55,7 @@ static int iftable_add(struct nlmsghdr *n, void *arg) struct ifinfomsg *ifi_msg = NLMSG_DATA(n); struct ifindex_node *this; struct rtattr *cb[IFLA_MAX+1]; - struct nlif_handle *h = (struct nlif_handle *)arg; + struct nlif_handle *h = arg; if (n->nlmsg_type != RTM_NEWLINK) return -1; @@ -115,7 +115,7 @@ static int iftable_del(struct nlmsghdr *n, void *arg) { struct ifinfomsg *ifi_msg = NLMSG_DATA(n); struct rtattr *cb[IFLA_MAX+1]; - struct nlif_handle *h = (struct nlif_handle *)arg; + struct nlif_handle *h = arg; struct ifindex_node *this, *tmp; unsigned int hash; -- cgit v1.2.3