diff options
| author | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-05-22 16:27:16 +0000 |
|---|---|---|
| committer | Quentin Young <qlyoung@cumulusnetworks.com> | 2019-05-28 20:23:04 +0000 |
| commit | 396cd6366dc8bb17d5fc06dd532756b8420ece93 (patch) | |
| tree | 5442877ce67daace4318029e57b2ebabde672e63 /lib/linklist.h | |
| parent | 692f6582cc5d05b0c4e2d22859cbec23bb46abdd (diff) | |
lib: const a couple linklist apis
Signed-off-by: Quentin Young <qlyoung@cumulusnetworks.com>
Diffstat (limited to 'lib/linklist.h')
| -rw-r--r-- | lib/linklist.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/linklist.h b/lib/linklist.h index da42aa2688..d23d425d62 100644 --- a/lib/linklist.h +++ b/lib/linklist.h @@ -180,7 +180,7 @@ extern void listnode_move_to_tail(struct list *list, struct listnode *node); * data * data to insert into list */ -extern void listnode_delete(struct list *list, void *data); +extern void listnode_delete(struct list *list, const void *data); /* * Find the listnode corresponding to an element in a list. @@ -194,7 +194,7 @@ extern void listnode_delete(struct list *list, void *data); * Returns: * pointer to listnode storing the given data if found, NULL otherwise */ -extern struct listnode *listnode_lookup(struct list *list, void *data); +extern struct listnode *listnode_lookup(struct list *list, const void *data); /* * Retrieve the element at the head of a list. |
