diff options
| author | David Lamparter <equinox@opensourcerouting.org> | 2023-11-23 15:18:44 +0100 | 
|---|---|---|
| committer | David Lamparter <equinox@opensourcerouting.org> | 2023-11-23 15:20:13 +0100 | 
| commit | cc90c54b36818a13774edfed8d7ac9a6e36c9373 (patch) | |
| tree | eaffcbfa386a03cc25b0e47979c8956f204cb6a4 /bgpd/bgp_zebra.c | |
| parent | a13d2933b755e159f78251d6a790eb153c6500fb (diff) | |
*: add `zclient_options_sync`
... and use it instead of fiddling with the `.synchronous` field.
(Make it const while at it.)
Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
Diffstat (limited to 'bgpd/bgp_zebra.c')
| -rw-r--r-- | bgpd/bgp_zebra.c | 5 | 
1 files changed, 1 insertions, 4 deletions
diff --git a/bgpd/bgp_zebra.c b/bgpd/bgp_zebra.c index 57d419fabe..3b25348c4e 100644 --- a/bgpd/bgp_zebra.c +++ b/bgpd/bgp_zebra.c @@ -3430,9 +3430,6 @@ static void bgp_zebra_capabilities(struct zclient_capabilities *cap)  void bgp_zebra_init(struct event_loop *master, unsigned short instance)  { -	struct zclient_options options = zclient_options_default; - -	options.synchronous = true;  	zclient_num_connects = 0;  	hook_register_prio(if_real, 0, bgp_ifp_create); @@ -3450,7 +3447,7 @@ void bgp_zebra_init(struct event_loop *master, unsigned short instance)  	zclient->instance = instance;  	/* Initialize special zclient for synchronous message exchanges. */ -	zclient_sync = zclient_new(master, &options, NULL, 0); +	zclient_sync = zclient_new(master, &zclient_options_sync, NULL, 0);  	zclient_sync->sock = -1;  	zclient_sync->redist_default = ZEBRA_ROUTE_BGP;  	zclient_sync->instance = instance;  | 
