diff options
author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-05-22 18:27:16 +0200 |
---|---|---|
committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-05-28 22:23:04 +0200 |
commit | 396cd6366dc8bb17d5fc06dd532756b8420ece93 (patch) | |
tree | 5442877ce67daace4318029e57b2ebabde672e63 /lib/linklist.c | |
parent | Merge pull request #4384 from dslicenc/bgp-no-delete-default (diff) | |
download | frr-396cd6366dc8bb17d5fc06dd532756b8420ece93.tar.xz frr-396cd6366dc8bb17d5fc06dd532756b8420ece93.zip |
lib: const a couple linklist apis
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/linklist.c')
-rw-r--r-- | lib/linklist.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/linklist.c b/lib/linklist.c index e8ba9edc1..0d1efdf3a 100644 --- a/lib/linklist.c +++ b/lib/linklist.c @@ -246,7 +246,7 @@ void listnode_move_to_tail(struct list *l, struct listnode *n) LISTNODE_ATTACH(l, n); } -void listnode_delete(struct list *list, void *val) +void listnode_delete(struct list *list, const void *val) { struct listnode *node = listnode_lookup(list, val); @@ -307,7 +307,7 @@ void list_delete(struct list **list) *list = NULL; } -struct listnode *listnode_lookup(struct list *list, void *data) +struct listnode *listnode_lookup(struct list *list, const void *data) { struct listnode *node; |