summaryrefslogtreecommitdiff
path: root/pimd/pim_zlookup.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2023-11-23 15:18:44 +0100
committerDavid Lamparter <equinox@opensourcerouting.org>2023-11-23 15:20:13 +0100
commitcc90c54b36818a13774edfed8d7ac9a6e36c9373 (patch)
treeeaffcbfa386a03cc25b0e47979c8956f204cb6a4 /pimd/pim_zlookup.c
parenta13d2933b755e159f78251d6a790eb153c6500fb (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 'pimd/pim_zlookup.c')
-rw-r--r--pimd/pim_zlookup.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/pimd/pim_zlookup.c b/pimd/pim_zlookup.c
index 6a026f9947..c19119fa47 100644
--- a/pimd/pim_zlookup.c
+++ b/pimd/pim_zlookup.c
@@ -122,10 +122,7 @@ void zclient_lookup_free(void)
void zclient_lookup_new(void)
{
- struct zclient_options options = zclient_options_default;
- options.synchronous = true;
-
- zlookup = zclient_new(router->master, &options, NULL, 0);
+ zlookup = zclient_new(router->master, &zclient_options_sync, NULL, 0);
if (!zlookup) {
flog_err(EC_LIB_ZAPI_SOCKET, "%s: zclient_new() failure",
__func__);