From: Donald Sharp Date: Wed, 11 Oct 2017 14:20:15 +0000 (-0400) Subject: ripd: Make 'struct zebra_privs_t' available X-Git-Tag: frr-4.0-dev~195^2~4 X-Git-Url: https://git.puffer.fish/?a=commitdiff_plain;h=32b5a49362ff067fb152521f94e84f34a587c05f;p=mirror%2Ffrr.git ripd: Make 'struct zebra_privs_t' available Signed-off-by: Donald Sharp --- diff --git a/ripd/rip_interface.c b/ripd/rip_interface.c index 9282896c28..a997ca5f2e 100644 --- a/ripd/rip_interface.c +++ b/ripd/rip_interface.c @@ -58,8 +58,6 @@ const struct message ri_version_msg[] = {{RI_RIP_VERSION_1, "1"}, {RI_RIP_VERSION_NONE, "none"}, {0}}; -extern struct zebra_privs_t ripd_privs; - /* RIP enabled network vector. */ vector rip_enable_interface; diff --git a/ripd/ripd.c b/ripd/ripd.c index a4b56d9fbf..aece5d03cd 100644 --- a/ripd/ripd.c +++ b/ripd/ripd.c @@ -49,9 +49,6 @@ DEFINE_QOBJ_TYPE(rip) /* UDP receive buffer size */ #define RIP_UDP_RCV_BUF 41600 -/* privileges global */ -extern struct zebra_privs_t ripd_privs; - /* RIP Structure. */ struct rip *rip = NULL; diff --git a/ripd/ripd.h b/ripd/ripd.h index 895a48c3db..ae34ed3f48 100644 --- a/ripd/ripd.h +++ b/ripd/ripd.h @@ -427,6 +427,8 @@ extern struct rip_info *rip_ecmp_delete(struct rip_info *); /* There is only one rip strucutre. */ extern struct rip *rip; +extern struct zebra_privs_t ripd_privs; + /* Master thread strucutre. */ extern struct thread_master *master;