svn commit: r298442 - head/usr.bin/netstat
Marcelo Araujo
araujo at FreeBSD.org
Fri Apr 22 03:37:29 UTC 2016
Author: araujo
Date: Fri Apr 22 03:37:27 2016
New Revision: 298442
URL: https://svnweb.freebsd.org/changeset/base/298442
Log:
Use macro MAX() from sys/param.h.
MFC after: 2 weeks.
Modified:
head/usr.bin/netstat/sctp.c
Modified: head/usr.bin/netstat/sctp.c
==============================================================================
--- head/usr.bin/netstat/sctp.c Fri Apr 22 03:32:14 2016 (r298441)
+++ head/usr.bin/netstat/sctp.c Fri Apr 22 03:37:27 2016 (r298442)
@@ -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");
More information about the svn-src-head
mailing list