]> git.proxmox.com Git - mirror_frr.git/blobdiff - ospf6d/ospf6_lsa.c
Merge pull request #10447 from ton31337/fix/json_with_whitespaces
[mirror_frr.git] / ospf6d / ospf6_lsa.c
index b07b87737ed00f6350f299cfe91c96abd37394a1..779076f387f2c132794acf889bf556b38508e141 100644 (file)
@@ -833,7 +833,7 @@ struct ospf6_lsa *ospf6_lsa_unlock(struct ospf6_lsa *lsa)
 
 
 /* ospf6 lsa expiry */
-int ospf6_lsa_expire(struct thread *thread)
+void ospf6_lsa_expire(struct thread *thread)
 {
        struct ospf6_lsa *lsa;
        struct ospf6 *ospf6;
@@ -852,7 +852,7 @@ int ospf6_lsa_expire(struct thread *thread)
        }
 
        if (CHECK_FLAG(lsa->flag, OSPF6_LSA_HEADERONLY))
-               return 0; /* dbexchange will do something ... */
+               return; /* dbexchange will do something ... */
        ospf6 = ospf6_get_by_lsdb(lsa);
        assert(ospf6);
 
@@ -864,11 +864,9 @@ int ospf6_lsa_expire(struct thread *thread)
 
        /* schedule maxage remover */
        ospf6_maxage_remove(ospf6);
-
-       return 0;
 }
 
-int ospf6_lsa_refresh(struct thread *thread)
+void ospf6_lsa_refresh(struct thread *thread)
 {
        struct ospf6_lsa *old, *self, *new;
        struct ospf6_lsdb *lsdb_self;
@@ -886,7 +884,7 @@ int ospf6_lsa_refresh(struct thread *thread)
                        zlog_debug("Refresh: could not find self LSA, flush %s",
                                   old->name);
                ospf6_lsa_premature_aging(old);
-               return 0;
+               return;
        }
 
        /* Reset age, increment LS sequence number. */
@@ -911,8 +909,6 @@ int ospf6_lsa_refresh(struct thread *thread)
 
        ospf6_install_lsa(new);
        ospf6_flood(NULL, new);
-
-       return 0;
 }
 
 void ospf6_flush_self_originated_lsas_now(struct ospf6 *ospf6)