summaryrefslogtreecommitdiff
path: root/ospf6d/ospf6_lsa.c
diff options
context:
space:
mode:
Diffstat (limited to 'ospf6d/ospf6_lsa.c')
-rw-r--r--ospf6d/ospf6_lsa.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/ospf6d/ospf6_lsa.c b/ospf6d/ospf6_lsa.c
index 2b806afe06..bc39579653 100644
--- a/ospf6d/ospf6_lsa.c
+++ b/ospf6d/ospf6_lsa.c
@@ -333,7 +333,7 @@ void ospf6_lsa_premature_aging(struct ospf6_lsa *lsa)
ospf6_flood_clear(lsa);
lsa->header->age = htons(OSPF_LSA_MAXAGE);
- event_execute(master, ospf6_lsa_expire, lsa, 0);
+ event_execute(master, ospf6_lsa_expire, lsa, 0, NULL);
}
/* check which is more recent. if a is more recent, return -1;
@@ -797,17 +797,17 @@ struct ospf6_lsa *ospf6_lsa_lock(struct ospf6_lsa *lsa)
}
/* decrement reference counter of struct ospf6_lsa */
-struct ospf6_lsa *ospf6_lsa_unlock(struct ospf6_lsa *lsa)
+void ospf6_lsa_unlock(struct ospf6_lsa **lsa)
{
/* decrement reference counter */
- assert(lsa->lock > 0);
- lsa->lock--;
+ assert((*lsa)->lock > 0);
+ (*lsa)->lock--;
- if (lsa->lock != 0)
- return lsa;
+ if ((*lsa)->lock != 0)
+ return;
- ospf6_lsa_delete(lsa);
- return NULL;
+ ospf6_lsa_delete(*lsa);
+ *lsa = NULL;
}