Use queue macros.

This commit is contained in:
jhb 2001-01-24 00:01:42 +00:00
parent 80649f2bc1
commit a98f3e67f7
3 changed files with 3 additions and 3 deletions

View File

@ -56,7 +56,7 @@ physio_proc_enter(bp)
if (bp == NULL || (bp->b_flags & B_PHYS) == 0)
return NULL;
if ((pp = physio_proc_freet.tqh_first) == NULL)
if ((pp = TAILQ_FIRST(&physio_proc_freet)) == NULL)
return NULL;
s = splstatclock();

View File

@ -82,7 +82,7 @@ ibcs2_modevent(module_t mod, int type, void *unused)
case MOD_UNLOAD:
/* if this was an ELF module we'd use elf_brand_inuse()... */
ALLPROC_LOCK(AP_SHARED);
for (p = allproc.lh_first; p != 0; p = p->p_list.le_next) {
LIST_FOREACH(p, &allproc, p_list) {
if (p->p_sysent == &ibcs2_svr3_sysvec) {
rval = EBUSY;
break;

View File

@ -56,7 +56,7 @@ physio_proc_enter(bp)
if (bp == NULL || (bp->b_flags & B_PHYS) == 0)
return NULL;
if ((pp = physio_proc_freet.tqh_first) == NULL)
if ((pp = TAILQ_FIRST(&physio_proc_freet)) == NULL)
return NULL;
s = splstatclock();