diff options
author | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-05-20 03:29:14 +0200 |
---|---|---|
committer | Donald Sharp <sharpd@cumulusnetworks.com> | 2015-05-20 03:29:14 +0200 |
commit | ed2eb093c75183167524205111fb4ae3e253e4a9 (patch) | |
tree | 5e6cc1fb8b9b49374c2e430c4d3e9507ac2e9d83 /ospf6d/ospf6_route.h | |
parent | ripd: ripd-warnings.patch (diff) | |
download | frr-ed2eb093c75183167524205111fb4ae3e253e4a9.tar.xz frr-ed2eb093c75183167524205111fb4ae3e253e4a9.zip |
ospfd: ospfd-warnings.patch
Remove compile warnings for the ospfd/ospf6d directory
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
Reviewed-by:
Diffstat (limited to 'ospf6d/ospf6_route.h')
-rw-r--r-- | ospf6d/ospf6_route.h | 8 |
1 files changed, 3 insertions, 5 deletions
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, |