Date: Mon, 2 May 2016 01:40:31 +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: r298908 - head/sbin/dumpfs Message-ID: <201605020140.u421eVS3084972@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: araujo Date: Mon May 2 01:40:31 2016 New Revision: 298908 URL: https://svnweb.freebsd.org/changeset/base/298908 Log: Use MIN macro from sys/param.h. MFC after: 2 weeks Modified: head/sbin/dumpfs/dumpfs.c Modified: head/sbin/dumpfs/dumpfs.c ============================================================================== --- head/sbin/dumpfs/dumpfs.c Mon May 2 01:28:21 2016 (r298907) +++ head/sbin/dumpfs/dumpfs.c Mon May 2 01:40:31 2016 (r298908) @@ -353,8 +353,7 @@ dumpcg(void) for (i = 1; i < afs.fs_contigsumsize; i++) { if ((i - 1) % 8 == 0) printf("\nclusters %d-%d:", i, - afs.fs_contigsumsize - 1 < i + 7 ? - afs.fs_contigsumsize - 1 : i + 7); + MIN(afs.fs_contigsumsize - 1, i + 7)); printf("\t%d", cg_clustersum(&acg)[i]); } printf("\nclusters size %d and over: %d\n",
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201605020140.u421eVS3084972>