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");
 
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to