summaryrefslogtreecommitdiff
path: root/src/lib/libcrypto/mem_clr.c
diff options
context:
space:
mode:
authortb <>2021-12-28 20:07:17 +0000
committertb <>2021-12-28 20:07:17 +0000
commitd5e5351d999b577920805503d1fdb3dcd11ea7b4 (patch)
treef3acc285123c98d1d64016a9d25ac0165414ec80 /src/lib/libcrypto/mem_clr.c
parent3cd94ecdd7b8d5f0722acd2b78dbb68819cb2c16 (diff)
downloadopenbsd-d5e5351d999b577920805503d1fdb3dcd11ea7b4.tar.gz
openbsd-d5e5351d999b577920805503d1fdb3dcd11ea7b4.tar.bz2
openbsd-d5e5351d999b577920805503d1fdb3dcd11ea7b4.zip
Make IPAddressFamily_cmp() more pleasing on the eye
Define and use MINIMUM() instead of a ternary operator and separate the code from the declarations. Also, we can spare a line to make the return legible instead of squeezing it into another ternary operator. addressFamily->data contains a two-bytes AFI and an optional one-byte SAFI. This function currently also compares any trailing garbage that may be present. Since comparison functions can't really error, this needs to be checked bofore it is used. Such checks will be added in subsequent commits. ok jsing
Diffstat (limited to 'src/lib/libcrypto/mem_clr.c')
0 files changed, 0 insertions, 0 deletions