summaryrefslogtreecommitdiff
path: root/lib/zclient.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/zclient.c')
-rw-r--r--lib/zclient.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/zclient.c b/lib/zclient.c
index 39756933e7..61533aecc6 100644
--- a/lib/zclient.c
+++ b/lib/zclient.c
@@ -41,10 +41,14 @@ static void zclient_event(enum zclient_event, struct zclient *);
static void zebra_interface_if_set_value(struct stream *s,
struct interface *ifp);
-struct zclient_options zclient_options_default = {
+const struct zclient_options zclient_options_default = {
.synchronous = false,
};
+const struct zclient_options zclient_options_sync = {
+ .synchronous = true,
+};
+
struct sockaddr_storage zclient_addr;
socklen_t zclient_addr_len;
@@ -53,7 +57,7 @@ static int zclient_debug;
/* Allocate zclient structure. */
struct zclient *zclient_new(struct event_loop *master,
- struct zclient_options *opt,
+ const struct zclient_options *opt,
zclient_handler *const *handlers, size_t n_handlers)
{
struct zclient *zclient;