summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_lsa.c
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2022-02-22 19:04:25 -0500
committerDonald Sharp <sharpd@nvidia.com>2022-02-23 19:56:04 -0500
commitcc9f21da2218d95567eff1501482ce58e6600f54 (patch)
treed579c9754161d874bad6eb09c67821b65fb559ca /ospf6d/ospf6_lsa.c
parenteaba619fc183f68a456b3918f449185b3b477426 (diff)
*: Change thread->func to return void instead of int
The int return value is never used. Modify the code base to just return a void instead. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'ospf6d/ospf6_lsa.c')
-rw-r--r--ospf6d/ospf6_lsa.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/ospf6d/ospf6_lsa.c b/ospf6d/ospf6_lsa.c
index 99d0de39cf..740a94ba84 100644
--- a/ospf6d/ospf6_lsa.c
+++ b/ospf6d/ospf6_lsa.c
@@ -829,7 +829,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;
@@ -848,7 +848,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);
@@ -860,11 +860,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;
@@ -882,7 +880,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. */
@@ -907,8 +905,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)