svn commit: r315049 - head/usr.bin/vmstat

Ngie Cooper (yaneurabeya) yaneurabeya at gmail.com
Sun Mar 12 02:05:26 UTC 2017


> On Mar 10, 2017, at 20:36, Marcelo Araujo <araujo at FreeBSD.org> wrote:
> 
> Author: araujo
> Date: Sat Mar 11 04:36:15 2017
> New Revision: 315049
> URL: https://svnweb.freebsd.org/changeset/base/315049
> 
> Log:
>  Bring back the cast removed in my previous commit to allow us build vmstat
>  with WARNS 2. This cast was first introduced at r87690.
> 
>  Reported by:	bde, pfg and ngie
>  MFC after:	3 weeks.
> 
> Modified:
>  head/usr.bin/vmstat/vmstat.c
> 
> Modified: head/usr.bin/vmstat/vmstat.c
> ==============================================================================
> --- head/usr.bin/vmstat/vmstat.c	Sat Mar 11 04:03:13 2017	(r315048)
> +++ head/usr.bin/vmstat/vmstat.c	Sat Mar 11 04:36:15 2017	(r315049)
> @@ -288,13 +288,13 @@ retry_nlist:
> 				namelist[X_SUM].n_name = "_cnt";
> 				goto retry_nlist;
> 			}
> -			for (c = 0; c < nitems(namelist); c++)
> +			for (c = 0; c < (int)(nitems(namelist)); c++)

Before bde@ notes this, it’s stylistically incorrect (additional unnecessary parentheses around the nitems call.
Thanks,
-Ngie
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 842 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20170311/2d093f08/attachment.sig>


More information about the svn-src-head mailing list