summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorjhb <jhb@FreeBSD.org>2001-01-24 00:01:42 +0000
committerjhb <jhb@FreeBSD.org>2001-01-24 00:01:42 +0000
commita98f3e67f7ed013a638a049f1240540c2bf94015 (patch)
treec46ecd996abf244d8a5704dcf1bdcd8101beda86
parent80649f2bc14466af487fac64c40a88ede7c20efc (diff)
downloadFreeBSD-src-a98f3e67f7ed013a638a049f1240540c2bf94015.zip
FreeBSD-src-a98f3e67f7ed013a638a049f1240540c2bf94015.tar.gz
Use queue macros.
-rw-r--r--sys/compat/netbsd/physio_proc.h2
-rw-r--r--sys/i386/ibcs2/ibcs2_sysvec.c2
-rw-r--r--sys/i386/include/physio_proc.h2
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();
OpenPOWER on IntegriCloud