summaryrefslogtreecommitdiffstats
path: root/isisd
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2020-11-11 20:14:37 +0100
committerDonald Sharp <sharpd@nvidia.com>2020-11-15 21:04:52 +0100
commit7cfdb48554329b1fb7d0469d0ebf2bfa816c5eea (patch)
tree50d3a706d34cd135865356c0d95f04511497510b /isisd
parentbgpd, lib, sharpd: Add enum for zclient_send_message return (diff)
downloadfrr-7cfdb48554329b1fb7d0469d0ebf2bfa816c5eea.tar.xz
frr-7cfdb48554329b1fb7d0469d0ebf2bfa816c5eea.zip
*: Convert all usage of zclient_send_message to new enum
The `enum zclient_send_status` enum needs to be extended throughout the code base to use the new states and to fix up places where we tested against the return value being non zero. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'isisd')
-rw-r--r--isisd/isis_zebra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/isisd/isis_zebra.c b/isisd/isis_zebra.c
index 8bc563399..b9958a669 100644
--- a/isisd/isis_zebra.c
+++ b/isisd/isis_zebra.c
@@ -618,7 +618,7 @@ int isis_zebra_label_manager_connect(void)
set_nonblocking(zclient_sync->sock);
/* Send hello to notify zebra this is a synchronous client */
- if (zclient_send_hello(zclient_sync) < 0) {
+ if (zclient_send_hello(zclient_sync) == ZCLIENT_SEND_FAILURE) {
zlog_warn("%s: failed sending hello for synchronous zclient!",
__func__);
close(zclient_sync->sock);