summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@cumulusnetworks.com>2017-10-11 10:20:15 -0400
committerDonald Sharp <sharpd@cumulusnetworks.com>2017-10-23 18:09:23 -0400
commit32b5a49362ff067fb152521f94e84f34a587c05f (patch)
treee1dde63cd0e7e63c4e5de10066ddb354b296ea14
parent101dc9bc6c6e68d1e88e447e2252ccb2d86f7326 (diff)
ripd: Make 'struct zebra_privs_t' available
Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
-rw-r--r--ripd/rip_interface.c2
-rw-r--r--ripd/ripd.c3
-rw-r--r--ripd/ripd.h2
3 files changed, 2 insertions, 5 deletions
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;