From 244576d3c3fc0fdad6787ed6b885efc9ed781bb9 Mon Sep 17 00:00:00 2001 From: araujo Date: Fri, 22 Apr 2016 03:37:27 +0000 Subject: [PATCH] Use macro MAX() from sys/param.h. MFC after: 2 weeks. --- usr.bin/netstat/sctp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/netstat/sctp.c b/usr.bin/netstat/sctp.c index db40f9c9b359..0ab933a9ee84 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");