Re: vmstat WARNS6 cleanup
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
討論串 (同標題文章)
完整討論串 (本文為第 7 之 10 篇):