[PATCH 26/29] libnetworking: satosin is now provided by in.h.
Christian Mauderer
christian.mauderer at embedded-brains.de
Mon Apr 25 15:07:00 UTC 2016
From: Christian Mauderer <Christian.Mauderer at embedded-brains.de>
---
cpukit/libnetworking/netinet/in_rmx.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/cpukit/libnetworking/netinet/in_rmx.c b/cpukit/libnetworking/netinet/in_rmx.c
index 6effa7c..c386044 100644
--- a/cpukit/libnetworking/netinet/in_rmx.c
+++ b/cpukit/libnetworking/netinet/in_rmx.c
@@ -115,11 +115,9 @@ in_addroute(void *v_arg, void *n_arg, struct radix_node_head *head,
if (in_broadcast(sin->sin_addr, rt->rt_ifp)) {
rt->rt_flags |= RTF_BROADCAST;
} else {
-#define satosin(sa) ((struct sockaddr_in *)sa)
if (satosin(rt->rt_ifa->ifa_addr)->sin_addr.s_addr
== sin->sin_addr.s_addr)
rt->rt_flags |= RTF_LOCAL;
-#undef satosin
}
}
--
1.8.4.5
More information about the devel
mailing list