]> git.puffer.fish Git - mirror/frr.git/commit
ospf6d: use existing union, avoid strict-aliasing
authorDavid Lamparter <equinox@opensourcerouting.org>
Tue, 3 Mar 2015 09:30:27 +0000 (10:30 +0100)
committerDonald Sharp <sharpd@cumulusnetworks.com>
Wed, 8 Jun 2016 16:52:19 +0000 (12:52 -0400)
commit81382410ed4203f5cb9283204bed635cb80df7d2
tree1b1f6408dc7e05ee70d9879ca10c6920dc96d669
parentf03db93b27bc4221712a2f7ef6a123a144e5884c
ospf6d: use existing union, avoid strict-aliasing

There are preexisting fields u.lp.id and u.lp.adv_router in struct
prefix that do the same thing as these type-punning pointer derefs.
Use these and shut up the strict-aliasing warnings.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
(cherry picked from commit 0de0138a9146074f268245193e45c9376d998722)
ospf6d/ospf6_route.h