Use macro MAX() from sys/param.h.

MFC after:	2 weeks.
This commit is contained in:
Marcelo Araujo 2016-04-22 03:37:27 +00:00
parent 091ea4a091
commit fcc0131f63
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=298442

View File

@ -349,7 +349,7 @@ sctp_process_tcb(struct xsctp_tcb *xstcb,
xo_open_list("address");
xl = LIST_FIRST(&xladdr_head);
xr = LIST_FIRST(&xraddr_head);
x_max = (xl_total > xr_total) ? xl_total : xr_total;
x_max = MAX(xl_total, xr_total);
for (i = 0; i < x_max; i++) {
xo_open_instance("address");