From 7125293d65d73a451ec203c8c1630c236171f5a3 Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Thu, 24 Sep 2015 09:25:19 -0400 Subject: lib: zclient.c remove extern struct thread_master * zclient.c depended upon link time inclusion of a extern struct thread_master *master. This is a violation of the namespace of the calling daemon. If a library needs the pointer pass it in and save it for future use. This code change also makes the zclient code consistent with the other lib functions that need to schedule work on your behalf Signed-off-by: Donald Sharp --- ospf6d/ospf6_zebra.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ospf6d/ospf6_zebra.h') diff --git a/ospf6d/ospf6_zebra.h b/ospf6d/ospf6_zebra.h index a219450e..05694d39 100644 --- a/ospf6d/ospf6_zebra.h +++ b/ospf6d/ospf6_zebra.h @@ -44,7 +44,7 @@ extern void ospf6_zebra_redistribute (int); extern void ospf6_zebra_no_redistribute (int); #define ospf6_zebra_is_redistribute(type) \ vrf_bitmap_check (zclient->redist[type], VRF_DEFAULT) -extern void ospf6_zebra_init (void); +extern void ospf6_zebra_init(struct thread_master *); extern int config_write_ospf6_debug_zebra (struct vty *vty); extern void install_element_ospf6_debug_zebra (void); -- cgit v1.2.3