diff options
| author | Quentin Young <qlyoung@users.noreply.github.com> | 2019-04-22 17:11:02 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-22 17:11:02 -0400 |
| commit | f799ea3f940dc8107e677f4349fcd542cf01305b (patch) | |
| tree | f17b0a6bc6d7a8c5ace20ca7b7af966f8d81eeaa /lib/linklist.h | |
| parent | 8f19bc1c6922be3c466b479b59d6365b5c0924da (diff) | |
| parent | 75839aabb8082037804de7090663ff83f1babbce (diff) | |
Merge pull request #4173 from mjstapp/fix_linklist_warning
lib: fix warning in linklist api
Diffstat (limited to 'lib/linklist.h')
| -rw-r--r-- | lib/linklist.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/linklist.h b/lib/linklist.h index dd90608bcb..c30d8d314a 100644 --- a/lib/linklist.h +++ b/lib/linklist.h @@ -343,7 +343,13 @@ extern void list_add_list(struct list *list, struct list *add); extern struct listnode *listnode_lookup_nocheck(struct list *list, void *data); -extern void listnode_add_force(struct list **list, void *val); +/* + * Add a node to *list, if non-NULL. Otherwise, allocate a new list, mail + * it back in *list, and add a new node. + * + * Return: the new node. + */ +extern struct listnode *listnode_add_force(struct list **list, void *val); #ifdef __cplusplus } |
