]> git.proxmox.com Git - mirror_frr.git/blobdiff - pimd/pim_mroute.c
Merge pull request #10400 from opensourcerouting/pim6-compilefix
[mirror_frr.git] / pimd / pim_mroute.c
index 26ca0e2ceedf36011401c7ffffc31f7373e3f28d..af6f59824ccab7b9f8ca96fc6b9855639c3e044c 100644 (file)
@@ -688,12 +688,11 @@ static int pim_mroute_msg(struct pim_instance *pim, const char *buf,
 }
 #endif /* PIM_IPV != 4 */
 
-static int mroute_read(struct thread *t)
+static void mroute_read(struct thread *t)
 {
        struct pim_instance *pim;
        static long long count;
        char buf[10000];
-       int result = 0;
        int cont = 1;
        int rd;
        ifindex_t ifindex;
@@ -716,7 +715,7 @@ static int mroute_read(struct thread *t)
                        goto done;
                }
 
-               result = pim_mroute_msg(pim, buf, rd, ifindex);
+               pim_mroute_msg(pim, buf, rd, ifindex);
 
                count++;
                if (count % router->packet_process == 0)
@@ -725,8 +724,6 @@ static int mroute_read(struct thread *t)
 /* Keep reading */
 done:
        mroute_read_on(pim);
-
-       return result;
 }
 
 static void mroute_read_on(struct pim_instance *pim)