summaryrefslogtreecommitdiff
path: root/isisd
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 /isisd
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 'isisd')
-rw-r--r--isisd/isis_zebra.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/isisd/isis_zebra.c b/isisd/isis_zebra.c
index 8252c1ac25..18a0c49ceb 100644
--- a/isisd/isis_zebra.c
+++ b/isisd/isis_zebra.c
@@ -1395,9 +1395,7 @@ void isis_zebra_init(struct event_loop *master, int instance)
zclient->zebra_connected = isis_zebra_connected;
/* Initialize special zclient for synchronous message exchanges. */
- struct zclient_options options = zclient_options_default;
- options.synchronous = true;
- 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_ISIS;
zclient_sync->instance = instance;