From: Donald Sharp Date: Thu, 8 Oct 2020 14:38:45 +0000 (-0400) Subject: ospf6d: Move header includes around to reflect reality X-Git-Tag: base_7.6~443^2~1 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=c527acf1eba3325e537ef844f57957f6c3843cab;p=matthieu%2Ffrr.git ospf6d: Move header includes around to reflect reality ospf6_network.h needs ospf6_top.h to be included first. This makes newer versions of gcc much much happier. Signed-off-by: Donald Sharp --- diff --git a/ospf6d/ospf6_interface.c b/ospf6d/ospf6_interface.c index fabcc426ea..334f1bd2a5 100644 --- a/ospf6d/ospf6_interface.c +++ b/ospf6d/ospf6_interface.c @@ -31,10 +31,10 @@ #include "ospf6_lsa.h" #include "ospf6_lsdb.h" +#include "ospf6_top.h" #include "ospf6_network.h" #include "ospf6_message.h" #include "ospf6_route.h" -#include "ospf6_top.h" #include "ospf6_area.h" #include "ospf6_interface.h" #include "ospf6_neighbor.h" diff --git a/ospf6d/ospf6_message.c b/ospf6d/ospf6_message.c index eb8c414d9b..02daaf6c2c 100644 --- a/ospf6d/ospf6_message.c +++ b/ospf6d/ospf6_message.c @@ -31,10 +31,10 @@ #include "ospf6_proto.h" #include "ospf6_lsa.h" #include "ospf6_lsdb.h" +#include "ospf6_top.h" #include "ospf6_network.h" #include "ospf6_message.h" -#include "ospf6_top.h" #include "ospf6_area.h" #include "ospf6_neighbor.h" #include "ospf6_interface.h" diff --git a/ospf6d/ospf6_network.c b/ospf6d/ospf6_network.c index abbb180d45..6c83881bf4 100644 --- a/ospf6d/ospf6_network.c +++ b/ospf6d/ospf6_network.c @@ -30,9 +30,9 @@ #include "libospf.h" #include "ospf6_proto.h" +#include "ospf6_top.h" #include "ospf6_network.h" #include "ospf6d.h" -#include "ospf6_top.h" struct in6_addr allspfrouters6; struct in6_addr alldrouters6; diff --git a/ospf6d/ospf6_network.h b/ospf6d/ospf6_network.h index eeef0514f3..d11a611c49 100644 --- a/ospf6d/ospf6_network.h +++ b/ospf6d/ospf6_network.h @@ -21,7 +21,6 @@ #ifndef OSPF6_NETWORK_H #define OSPF6_NETWORK_H -struct ospf6 *ospf6; extern struct in6_addr allspfrouters6; extern struct in6_addr alldrouters6; diff --git a/ospf6d/ospf6d.c b/ospf6d/ospf6d.c index e904482391..65607fc131 100644 --- a/ospf6d/ospf6d.c +++ b/ospf6d/ospf6d.c @@ -27,6 +27,7 @@ #include "plist.h" #include "ospf6_proto.h" +#include "ospf6_top.h" #include "ospf6_network.h" #include "ospf6_lsa.h" #include "ospf6_lsdb.h" @@ -34,7 +35,6 @@ #include "ospf6_route.h" #include "ospf6_zebra.h" #include "ospf6_spf.h" -#include "ospf6_top.h" #include "ospf6_area.h" #include "ospf6_interface.h" #include "ospf6_neighbor.h"