DragonFly BSD
DragonFly submit List (threaded) for 2005-01
[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]

Re: vmstat WARNS6 cleanup


From: Joerg Sonnenberger <joerg@xxxxxxxxxxxxxxxxx>
Date: Sat, 8 Jan 2005 22:33:56 +0100
Mail-followup-to: submit@crater.dragonflybsd.org

On Sat, Jan 08, 2005 at 10:26:08PM +0100, Peter Schuller wrote:
> @@ -230,7 +242,8 @@
>  		if (c > 0) {
>  			warnx("undefined symbols:");
>  			for (c = 0;
> -			    c < sizeof(namelist)/sizeof(namelist[0]); c++)
> +			     c < (int)(sizeof(namelist)/sizeof(namelist[0]));
> +			     c++)
>  				if (namelist[c].n_type == 0)
>  					fprintf(stderr, " %s",
>  					    namelist[c].n_name);

I used __arysize(namelist) here, rest is find. Thanks.

Joerg



[Date Prev][Date Next]  [Thread Prev][Thread Next]  [Date Index][Thread Index]