Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Apr 2016 03:37:28 +0000 (UTC)
From:      Marcelo Araujo <araujo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r298442 - head/usr.bin/netstat
Message-ID:  <201604220337.u3M3bSu3055665@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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");
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201604220337.u3M3bSu3055665>