summaryrefslogtreecommitdiffstats
path: root/lib/libssl/src
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2015-02-15 01:56:16 +0000
committertedu <tedu@openbsd.org>2015-02-15 01:56:16 +0000
commit75cfcc04ef7473142d9b57ba202c36fcbb5adbc2 (patch)
tree070e9c14b234616d274512b454af9859c76d28a6 /lib/libssl/src
parentRather than using 0xff as a placeholder for "don't check prio", use 0xff to (diff)
downloadwireguard-openbsd-75cfcc04ef7473142d9b57ba202c36fcbb5adbc2.tar.xz
wireguard-openbsd-75cfcc04ef7473142d9b57ba202c36fcbb5adbc2.zip
These functions turned up in my grep for bcmp. There are already perfectly
good cmp functions written for qsort, but then different versions were written which (ab)use the fact that bsearch doesn't strictly require the key type to be the same as the element type. Nevertheless, I think it's clearer and cleaner to create a complete key struct and search with that. As a bonus, we don't need two different compare functions just to compare with two different encoding values. ok millert
Diffstat (limited to 'lib/libssl/src')
0 files changed, 0 insertions, 0 deletions