]> git.proxmox.com Git - mirror_frr.git/commit
lib: use sentinel for single-linked lists
authorDavid Lamparter <equinox@opensourcerouting.org>
Wed, 29 Sep 2021 20:15:11 +0000 (22:15 +0200)
committerDavid Lamparter <equinox@opensourcerouting.org>
Tue, 19 Oct 2021 12:55:39 +0000 (14:55 +0200)
commitd259ca0989c793767c912622437c3c5b2c6d84b2
tree6dac6cc1a48f47edde0c52a248dff2c1c09256e7
parentf45897e45c57db80b21e31d44723733a17bfac54
lib: use sentinel for single-linked lists

Using a non-NULL sentinel allows distinguishing between "end of list"
and "item not on any list".  It's a compare either way, just the value
is different.

Signed-off-by: David Lamparter <equinox@opensourcerouting.org>
lib/typesafe.c
lib/typesafe.h