]> git.proxmox.com Git - mirror_frr.git/blobdiff - pimd/pim_zpthread.c
pim6d: Changing igmp_enable to gm_enable.
[mirror_frr.git] / pimd / pim_zpthread.c
index 518b024749e08a99c8df9f42ceb06a7be04a4925..e6fb3b3a17274ea2d027cd061c481d4a9081806b 100644 (file)
@@ -22,6 +22,7 @@
 #include <lib/lib_errors.h>
 
 #include "pimd.h"
+#include "pim_instance.h"
 #include "pim_mlag.h"
 #include "pim_zebra.h"
 
@@ -140,7 +141,7 @@ static void pim_mlag_zebra_check_for_buffer_flush(uint32_t curr_msg_type,
  * Thsi thread reads the clients data from the Gloabl queue and encodes with
  * protobuf and pass on to the MLAG socket.
  */
-static int pim_mlag_zthread_handler(struct thread *event)
+static void pim_mlag_zthread_handler(struct thread *event)
 {
        struct stream *read_s;
        uint32_t wr_count = 0;
@@ -155,7 +156,7 @@ static int pim_mlag_zthread_handler(struct thread *event)
                           __func__, wr_count);
 
        if (wr_count == 0)
-               return 0;
+               return;
 
        for (wr_count = 0; wr_count < PIM_MLAG_POST_LIMIT; wr_count++) {
                /* FIFO is empty,wait for teh message to be add */
@@ -207,8 +208,6 @@ stream_failure:
 
        if (wr_count >= PIM_MLAG_POST_LIMIT)
                pim_mlag_signal_zpthread();
-
-       return 0;
 }