binsearch: make BINARY_ARRAY_SEARCH_GTE compare against a pointer
authorDouglas Bagnall <douglas.bagnall@catalyst.net.nz>
Thu, 22 Dec 2016 03:09:22 +0000 (16:09 +1300)
committerDouglas Bagnall <dbagnall@samba.org>
Thu, 9 Feb 2017 02:17:15 +0000 (03:17 +0100)
commit83c4ad778e6ffcd3e672a068a8e62f1611531298
tree8de31a2c41e39a0c177c2efebcef96de8c721108
parent8bdec7034e121592fa9faec70bd951319334e560
binsearch: make BINARY_ARRAY_SEARCH_GTE compare against a pointer

This is in preparation for improvements in our handling of linked
attributes where we make changes to the pointer in the process of
comparing it (for caching purposes).

Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
lib/util/binsearch.h
lib/util/tests/binsearch.c
source4/dsdb/samdb/ldb_modules/vlv_pagination.c