]> git.proxmox.com Git - mirror_frr.git/commit - lib/typesafe.h
lib: add dedicated pop() to DECLARE_SKIPLIST
authorDavid Lamparter <equinox@diac24.net>
Sun, 12 May 2019 10:05:14 +0000 (12:05 +0200)
committerDavid Lamparter <equinox@diac24.net>
Tue, 21 May 2019 03:18:16 +0000 (05:18 +0200)
commit01734da376d0ed6ce355f27e4d19b5496f8ae94f
tree2a72a8f261537e9a562cde365bcc1ac683010822
parenta6002ca58481d6b724d932b2243f39bd740f6499
lib: add dedicated pop() to DECLARE_SKIPLIST

The skiplist code was previously falling back to the del() code path for
a pop() on a skiplist.  This is unneeded complexity, a pop() can be done
more efficiently.

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