From: Donald Sharp Date: Wed, 11 Oct 2017 14:11:07 +0000 (-0400) Subject: ospfd: Make 'struct zebra_privs_t' available. X-Git-Tag: frr-4.0-dev~195^2~6 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=e5c25022921aae85edd58dfc342e92af389d2fad;p=mirror%2Ffrr.git ospfd: Make 'struct zebra_privs_t' available. Signed-off-by: Donald Sharp --- diff --git a/ospfd/ospf_network.c b/ospfd/ospf_network.c index 699f2341d5..519e3f9cf4 100644 --- a/ospfd/ospf_network.c +++ b/ospfd/ospf_network.c @@ -30,8 +30,6 @@ #include "sockopt.h" #include "privs.h" -extern struct zebra_privs_t ospfd_privs; - #include "ospfd/ospfd.h" #include "ospfd/ospf_network.h" #include "ospfd/ospf_interface.h" diff --git a/ospfd/ospfd.c b/ospfd/ospfd.c index 8ee32289c1..3771f94630 100644 --- a/ospfd/ospfd.c +++ b/ospfd/ospfd.c @@ -67,7 +67,6 @@ struct ospf_master *om; extern struct zclient *zclient; extern struct in_addr router_id_zebra; -extern struct zebra_privs_t ospfd_privs; static void ospf_remove_vls_through_area(struct ospf *, struct ospf_area *); diff --git a/ospfd/ospfd.h b/ospfd/ospfd.h index 4b0ebc8eb8..4c5bb756f6 100644 --- a/ospfd/ospfd.h +++ b/ospfd/ospfd.h @@ -502,6 +502,7 @@ extern const int ospf_redistributed_proto_max; extern struct zclient *zclient; extern struct thread_master *master; extern int ospf_zlog; +extern struct zebra_privs_t ospfd_privs; /* Prototypes. */ extern const char *ospf_redist_string(u_int route_type);