summaryrefslogtreecommitdiff
path: root/pimd/pim_mlag.c
diff options
context:
space:
mode:
authorChristian Hopps <chopps@labn.net>2022-02-24 01:43:48 -0500
committerGitHub <noreply@github.com>2022-02-24 01:43:48 -0500
commit7bf63db79b7848b73e1cef49f3496038644bea16 (patch)
tree2c95921d910689673348e60f9614de7d9d00c4e7 /pimd/pim_mlag.c
parentca6c97340b013e140c0cb31737858f7c672b7dfb (diff)
parentcc9f21da2218d95567eff1501482ce58e6600f54 (diff)
Merge pull request #10632 from donaldsharp/thread_return_null
*: Change thread->func to return void instead of int
Diffstat (limited to 'pimd/pim_mlag.c')
-rw-r--r--pimd/pim_mlag.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/pimd/pim_mlag.c b/pimd/pim_mlag.c
index f4ddc1bf64..68f77ad6d9 100644
--- a/pimd/pim_mlag.c
+++ b/pimd/pim_mlag.c
@@ -930,12 +930,12 @@ int pim_zebra_mlag_process_down(ZAPI_CALLBACK_ARGS)
return 0;
}
-static int pim_mlag_register_handler(struct thread *thread)
+static void pim_mlag_register_handler(struct thread *thread)
{
uint32_t bit_mask = 0;
if (!zclient)
- return -1;
+ return;
SET_FLAG(bit_mask, (1 << MLAG_STATUS_UPDATE));
SET_FLAG(bit_mask, (1 << MLAG_MROUTE_ADD));
@@ -952,7 +952,6 @@ static int pim_mlag_register_handler(struct thread *thread)
__func__, bit_mask);
zclient_send_mlag_register(zclient, bit_mask);
- return 0;
}
void pim_mlag_register(void)
@@ -966,17 +965,16 @@ void pim_mlag_register(void)
NULL);
}
-static int pim_mlag_deregister_handler(struct thread *thread)
+static void pim_mlag_deregister_handler(struct thread *thread)
{
if (!zclient)
- return -1;
+ return;
if (PIM_DEBUG_MLAG)
zlog_debug("%s: Posting Client De-Register to MLAG from PIM",
__func__);
router->connected_to_mlag = false;
zclient_send_mlag_deregister(zclient);
- return 0;
}
void pim_mlag_deregister(void)