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 /ldpd/lde.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 'ldpd/lde.c')
| -rw-r--r-- | ldpd/lde.c | 6 | 
1 files changed, 1 insertions, 5 deletions
diff --git a/ldpd/lde.c b/ldpd/lde.c index c7e915deb3..ef4aecadad 100644 --- a/ldpd/lde.c +++ b/ldpd/lde.c @@ -2135,12 +2135,8 @@ static void zclient_sync_retry(struct event *thread)   */  static void zclient_sync_init(void)  { -	struct zclient_options options = zclient_options_default; - -	options.synchronous = true; -  	/* 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_LDP;  	zclient_sync->session_id = 1; /* Distinguish from main session */  | 
