diff options
author | Theo Buehler <tb@cvs.openbsd.org> | 2021-12-28 20:07:18 +0000 |
---|---|---|
committer | Theo Buehler <tb@cvs.openbsd.org> | 2021-12-28 20:07:18 +0000 |
commit | af246bf7cc22296396dfa3a6cf3a1edc86fa95b1 (patch) | |
tree | 381ef826e4641e185cf2be80e568e41b3ac0143d /Makefile | |
parent | e6b03d0d6383da355d0e35506b4837d5c96dc06f (diff) |
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 'Makefile')
0 files changed, 0 insertions, 0 deletions