mirror of
https://git.proxmox.com/git/mirror_frr
synced 2025-08-13 19:39:28 +00:00
ospf6d: Make ospf6_lsa_lock follow normal FRR pattern
The normal ospf6_lsa_lock call should return the pointer to the lock data structure we are holding. This is the normal pattern for locking a data structure in FRR. Signed-off-by: Donald Sharp <sharpd@cumulusnetworks.com>
This commit is contained in:
parent
ba49e033f5
commit
62270cc3ee
@ -601,10 +601,10 @@ struct ospf6_lsa *ospf6_lsa_copy(struct ospf6_lsa *lsa)
|
||||
}
|
||||
|
||||
/* increment reference counter of struct ospf6_lsa */
|
||||
void ospf6_lsa_lock(struct ospf6_lsa *lsa)
|
||||
struct ospf6_lsa *ospf6_lsa_lock(struct ospf6_lsa *lsa)
|
||||
{
|
||||
lsa->lock++;
|
||||
return;
|
||||
return lsa;
|
||||
}
|
||||
|
||||
/* decrement reference counter of struct ospf6_lsa */
|
||||
|
@ -226,8 +226,8 @@ ospf6_lsa_create_headeronly(struct ospf6_lsa_header *header);
|
||||
extern void ospf6_lsa_delete(struct ospf6_lsa *lsa);
|
||||
extern struct ospf6_lsa *ospf6_lsa_copy(struct ospf6_lsa *);
|
||||
|
||||
extern void ospf6_lsa_lock(struct ospf6_lsa *);
|
||||
extern struct ospf6_lsa *ospf6_lsa_unlock(struct ospf6_lsa *);
|
||||
extern struct ospf6_lsa *ospf6_lsa_lock(struct ospf6_lsa *lsa);
|
||||
extern struct ospf6_lsa *ospf6_lsa_unlock(struct ospf6_lsa *lsa);
|
||||
|
||||
extern int ospf6_lsa_expire(struct thread *);
|
||||
extern int ospf6_lsa_refresh(struct thread *);
|
||||
|
Loading…
Reference in New Issue
Block a user