diff options
author | jhb <jhb@FreeBSD.org> | 2001-01-24 00:01:42 +0000 |
---|---|---|
committer | jhb <jhb@FreeBSD.org> | 2001-01-24 00:01:42 +0000 |
commit | a98f3e67f7ed013a638a049f1240540c2bf94015 (patch) | |
tree | c46ecd996abf244d8a5704dcf1bdcd8101beda86 | |
parent | 80649f2bc14466af487fac64c40a88ede7c20efc (diff) | |
download | FreeBSD-src-a98f3e67f7ed013a638a049f1240540c2bf94015.zip FreeBSD-src-a98f3e67f7ed013a638a049f1240540c2bf94015.tar.gz |
Use queue macros.
-rw-r--r-- | sys/compat/netbsd/physio_proc.h | 2 | ||||
-rw-r--r-- | sys/i386/ibcs2/ibcs2_sysvec.c | 2 | ||||
-rw-r--r-- | sys/i386/include/physio_proc.h | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/sys/compat/netbsd/physio_proc.h b/sys/compat/netbsd/physio_proc.h index f31507e..7ab68c8 100644 --- a/sys/compat/netbsd/physio_proc.h +++ b/sys/compat/netbsd/physio_proc.h @@ -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(); diff --git a/sys/i386/ibcs2/ibcs2_sysvec.c b/sys/i386/ibcs2/ibcs2_sysvec.c index 8eb2987..1e70c13 100644 --- a/sys/i386/ibcs2/ibcs2_sysvec.c +++ b/sys/i386/ibcs2/ibcs2_sysvec.c @@ -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; diff --git a/sys/i386/include/physio_proc.h b/sys/i386/include/physio_proc.h index f31507e..7ab68c8 100644 --- a/sys/i386/include/physio_proc.h +++ b/sys/i386/include/physio_proc.h @@ -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(); |