From ed2eb093c75183167524205111fb4ae3e253e4a9 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Tue, 19 May 2015 18:29:14 -0700 Subject: ospfd: ospfd-warnings.patch Remove compile warnings for the ospfd/ospf6d directory Signed-off-by: Donald Sharp Reviewed-by: --- ospf6d/ospf6_route.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'ospf6d/ospf6_route.h') diff --git a/ospf6d/ospf6_route.h b/ospf6d/ospf6_route.h index b0e43874a..e5bfc5ed0 100644 --- a/ospf6d/ospf6_route.h +++ b/ospf6d/ospf6_route.h @@ -248,14 +248,12 @@ extern const char *ospf6_path_type_substr[OSPF6_PATH_TYPE_MAX]; #define ospf6_route_is_best(r) (CHECK_FLAG ((r)->flag, OSPF6_ROUTE_BEST)) #define ospf6_linkstate_prefix_adv_router(x) \ - (*(u_int32_t *)(&(x)->u.prefix6.s6_addr[0])) + ((x)->u.prefix4.s_addr) #define ospf6_linkstate_prefix_id(x) \ - (*(u_int32_t *)(&(x)->u.prefix6.s6_addr[4])) + ((x)->u.prefix6.s6_addr32[1]) #define ADV_ROUTER_IN_PREFIX(x) \ - (*(u_int32_t *)(&(x)->u.prefix6.s6_addr[0])) -#define ID_IN_PREFIX(x) \ - (*(u_int32_t *)(&(x)->u.prefix6.s6_addr[4])) + ((x)->u.prefix4.s_addr) /* Function prototype */ extern void ospf6_linkstate_prefix (u_int32_t adv_router, u_int32_t id, -- cgit v1.2.3