Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/netinet6 Delete unnecessary casts to void *. No function...
details: https://anonhg.NetBSD.org/src/rev/970bc3177b14
branches: trunk
changeset: 761746:970bc3177b14
user: dyoung <dyoung%NetBSD.org@localhost>
date: Sun Feb 06 19:12:55 2011 +0000
description:
Delete unnecessary casts to void *. No functional change intended. Same
assembly generated before and after this change.
diffstat:
sys/netinet6/in6.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diffs (46 lines):
diff -r 53c9c9a78325 -r 970bc3177b14 sys/netinet6/in6.c
--- a/sys/netinet6/in6.c Sun Feb 06 19:00:53 2011 +0000
+++ b/sys/netinet6/in6.c Sun Feb 06 19:12:55 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: in6.c,v 1.156 2010/04/22 20:05:15 dyoung Exp $ */
+/* $NetBSD: in6.c,v 1.157 2011/02/06 19:12:55 dyoung Exp $ */
/* $KAME: in6.c,v 1.198 2001/07/18 09:12:38 itojun Exp $ */
/*
@@ -62,7 +62,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.156 2010/04/22 20:05:15 dyoung Exp $");
+__KERNEL_RCSID(0, "$NetBSD: in6.c,v 1.157 2011/02/06 19:12:55 dyoung Exp $");
#include "opt_inet.h"
#include "opt_pfil_hooks.h"
@@ -965,7 +965,7 @@
M_NOWAIT);
if (ia == NULL)
return ENOBUFS;
- memset((void *)ia, 0, sizeof(*ia));
+ memset(ia, 0, sizeof(*ia));
LIST_INIT(&ia->ia6_memberships);
/* Initialize the address and masks, and put time stamp */
ia->ia_ifa.ifa_addr = (struct sockaddr *)&ia->ia_addr;
@@ -1607,7 +1607,7 @@
ifra.ifra_lifetime.ia6t_vltime = ND6_INFINITE_LIFETIME;
ifra.ifra_lifetime.ia6t_pltime = ND6_INFINITE_LIFETIME;
ifra.ifra_flags = iflr->flags & ~IFLR_PREFIX;
- return in6_control(so, SIOCAIFADDR_IN6, (void *)&ifra, ifp, l);
+ return in6_control(so, SIOCAIFADDR_IN6, &ifra, ifp, l);
}
case SIOCGLIFADDR:
case SIOCDLIFADDR:
@@ -1718,8 +1718,7 @@
ia->ia_prefixmask.sin6_len);
ifra.ifra_flags = ia->ia6_flags;
- return in6_control(so, SIOCDIFADDR_IN6, (void *)&ifra,
- ifp, l);
+ return in6_control(so, SIOCDIFADDR_IN6, &ifra, ifp, l);
}
}
}
Home |
Main Index |
Thread Index |
Old Index