From 7cfdb48554329b1fb7d0469d0ebf2bfa816c5eea Mon Sep 17 00:00:00 2001 From: Donald Sharp Date: Wed, 11 Nov 2020 14:14:37 -0500 Subject: *: 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 --- pimd/pim_zlookup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pimd/pim_zlookup.c') diff --git a/pimd/pim_zlookup.c b/pimd/pim_zlookup.c index dc4c621e9..05c9af873 100644 --- a/pimd/pim_zlookup.c +++ b/pimd/pim_zlookup.c @@ -61,7 +61,7 @@ static int zclient_lookup_connect(struct thread *t) zlookup->fail = 0; /* reset counter on connection */ } - if (zclient_send_hello(zlookup) < 0) { + if (zclient_send_hello(zlookup) == ZCLIENT_SEND_FAILURE) { if (close(zlookup->sock)) { zlog_warn("%s: closing fd=%d: errno=%d %s", __func__, zlookup->sock, errno, safe_strerror(errno)); -- cgit v1.2.3