]> git.ipfire.org Git - thirdparty/nftables.git/commit
segtree: Merge get_set_interval_find() and get_set_interval_end()
authorPhil Sutter <phil@nwl.cc>
Thu, 30 Apr 2020 11:57:35 +0000 (13:57 +0200)
committerPhil Sutter <phil@nwl.cc>
Mon, 4 May 2020 14:21:24 +0000 (16:21 +0200)
commitf21e73d6700b873eb1a295f43bbad9caaca577e2
treee22ce9086c01a9d58541e19037052aaf5338f2fa
parenta2eedcc89d2ed40411c26d53579300c4f1ccb83d
segtree: Merge get_set_interval_find() and get_set_interval_end()

Both functions were very similar already. Under the assumption that they
will always either see a range (or start of) that matches exactly or not
at all, reduce complexity and make get_set_interval_find() accept NULL
(left or) right values. This way it becomes a full replacement for
get_set_interval_end().

Signed-off-by: Phil Sutter <phil@nwl.cc>
src/segtree.c