summaryrefslogtreecommitdiffstats
path: root/lib/linklist.c
diff options
context:
space:
mode:
authorMark Stapp <mjs@voltanet.io>2019-04-22 21:49:16 +0200
committerMark Stapp <mjs@voltanet.io>2019-04-22 21:49:16 +0200
commit75839aabb8082037804de7090663ff83f1babbce (patch)
treef17b0a6bc6d7a8c5ace20ca7b7af966f8d81eeaa /lib/linklist.c
parentMerge pull request #3786 from mjstapp/dplane_intf (diff)
downloadfrr-75839aabb8082037804de7090663ff83f1babbce.tar.xz
frr-75839aabb8082037804de7090663ff83f1babbce.zip
lib: fix warning in linklist api
Add return value and comment to new/recent linklist api to clean up compile warning. Signed-off-by: Mark Stapp <mjs@voltanet.io>
Diffstat (limited to 'lib/linklist.c')
-rw-r--r--lib/linklist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/linklist.c b/lib/linklist.c
index d3ecc0030..40c4b2716 100644
--- a/lib/linklist.c
+++ b/lib/linklist.c
@@ -328,7 +328,7 @@ void list_sort(struct list *list, int (*cmp)(const void **, const void **))
XFREE(MTYPE_TMP, items);
}
-void listnode_add_force(struct list **list, void *val)
+struct listnode *listnode_add_force(struct list **list, void *val)
{
if (*list == NULL)
*list = list_new();