Skip to content
Snippets Groups Projects
Commit fe7c1b99 authored by Jan Včelák's avatar Jan Včelák :rocket:
Browse files

rrset review: dname_max macro is MIN

parent f8504387
Branches
Tags
No related merge requests found
......@@ -36,8 +36,7 @@
/*!
* \brief Get maximal size of a domain name in a wire with given capacity.
*/
#define dname_max(wire_capacity) \
((wire_capacity) > KNOT_DNAME_MAXLEN ? KNOT_DNAME_MAXLEN : (wire_capacity))
#define dname_max(wire_capacity) MIN(wire_capacity, KNOT_DNAME_MAXLEN)
/*!
* \brief Get compression pointer for a given hint.
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment