summaryrefslogtreecommitdiff
path: root/lib/printf/printf-pos.c
diff options
context:
space:
mode:
authorDavid Lamparter <equinox@opensourcerouting.org>2021-09-29 22:15:11 +0200
committerDavid Lamparter <equinox@opensourcerouting.org>2021-10-19 14:55:39 +0200
commitd259ca0989c793767c912622437c3c5b2c6d84b2 (patch)
tree6dac6cc1a48f47edde0c52a248dff2c1c09256e7 /lib/printf/printf-pos.c
parentf45897e45c57db80b21e31d44723733a17bfac54 (diff)
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>
Diffstat (limited to 'lib/printf/printf-pos.c')
0 files changed, 0 insertions, 0 deletions