Subject: Re: A couple of small glitches in today's -current
To: Tom Ivar Helbekkmo <tih@norway.eu.net>
From: Luke Mewburn <lukem@netbsd.org>
List: current-users
Date: 01/21/2003 13:49:56
On Mon, Jan 20, 2003 at 08:15:57PM +0100, Tom Ivar Helbekkmo wrote:
  | Two fixes needed to build -current as 'cvs update'ed today (someone
  | accidentally changed ';;' to ';' in two completely different places):
  | 
  | Index: usr.sbin/pstat/pstat.c
  | ===================================================================
  | RCS file: /cvsroot/src/usr.sbin/pstat/pstat.c,v
  | retrieving revision 1.76
  | diff -c -w -r1.76 pstat.c
  | *** usr.sbin/pstat/pstat.c	2003/01/20 05:30:13	1.76
  | --- usr.sbin/pstat/pstat.c	2003/01/20 09:15:34
  | ***************
  | *** 730,736 ****
  |   	beg = bp;
  |   	ep = bp + (numvnodes + 20) * (VPTRSZ + VNODESZ);
  |   	KGET(V_MOUNTLIST, mountlist);
  | ! 	for (mp = mountlist.cqh_first;
  |   	    mp = mount.mnt_list.cqe_next) {
  |   		KGET2(mp, &mount, sizeof(mount), "mount entry");
  |   		for (vp = mount.mnt_vnodelist.lh_first;
  | --- 730,736 ----
  |   	beg = bp;
  |   	ep = bp + (numvnodes + 20) * (VPTRSZ + VNODESZ);
  |   	KGET(V_MOUNTLIST, mountlist);
  | ! 	for (mp = mountlist.cqh_first;;
  |   	    mp = mount.mnt_list.cqe_next) {
  |   		KGET2(mp, &mount, sizeof(mount), "mount entry");
  |   		for (vp = mount.mnt_vnodelist.lh_first;


this code should probably be converted to use CIRCLEQ_FOREACH()