summaryrefslogtreecommitdiffstats
path: root/usr.bin
diff options
context:
space:
mode:
authoraraujo <araujo@FreeBSD.org>2016-04-22 03:37:27 +0000
committeraraujo <araujo@FreeBSD.org>2016-04-22 03:37:27 +0000
commit244576d3c3fc0fdad6787ed6b885efc9ed781bb9 (patch)
tree45107d8b3629f2dee569ff4f5252e670ffd8ed73 /usr.bin
parent3b04951cceac4f2b1d56b9c14d9b56c7535a9bdf (diff)
downloadFreeBSD-src-244576d3c3fc0fdad6787ed6b885efc9ed781bb9.zip
FreeBSD-src-244576d3c3fc0fdad6787ed6b885efc9ed781bb9.tar.gz
Use macro MAX() from sys/param.h.
MFC after: 2 weeks.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/netstat/sctp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/netstat/sctp.c b/usr.bin/netstat/sctp.c
index db40f9c..0ab933a 100644
--- a/usr.bin/netstat/sctp.c
+++ b/usr.bin/netstat/sctp.c
@@ -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");
OpenPOWER on IntegriCloud