]> git.proxmox.com Git - mirror_frr.git/commit
lib: add lookup utility routine that accepts null list values
authorPhilippe Guibert <philippe.guibert@6wind.com>
Thu, 28 Mar 2019 16:59:27 +0000 (17:59 +0100)
committerPhilippe Guibert <philippe.guibert@6wind.com>
Fri, 29 Mar 2019 14:04:17 +0000 (15:04 +0100)
commit2fe55afeec519afbe4fac45c0d0b8d4331f623aa
tree3e850f5813a5e5551b5a4a64adf02c2be8be89cf
parent3e3708cbd38a8e25c2cf8bede4ea1c86a0911dac
lib: add lookup utility routine that accepts null list values

lists passed as parameter that are null, are accepted by the function.
I would even propose to silently return NULL in official
listnode_lookup() routine.

Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
lib/linklist.c
lib/linklist.h