diff options
author | Miod Vallat <miod@cvs.openbsd.org> | 2004-12-25 23:02:27 +0000 |
---|---|---|
committer | Miod Vallat <miod@cvs.openbsd.org> | 2004-12-25 23:02:27 +0000 |
commit | f817c58ea799274eb832d25dc61acb5955f9b2d9 (patch) | |
tree | d81a72a842cf99a20e3b22543a17b8e53ad25961 /sys/arch/hppa | |
parent | f1b1a2a9897fb5e4903d7922e7d05f99ad07b847 (diff) |
Use list and queue macros where applicable to make the code easier to read;
no functional change.
Diffstat (limited to 'sys/arch/hppa')
-rw-r--r-- | sys/arch/hppa/hppa/autoconf.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sys/arch/hppa/hppa/autoconf.c b/sys/arch/hppa/hppa/autoconf.c index a3e985144a9..015b7ef5917 100644 --- a/sys/arch/hppa/hppa/autoconf.c +++ b/sys/arch/hppa/hppa/autoconf.c @@ -1,4 +1,4 @@ -/* $OpenBSD: autoconf.c,v 1.41 2004/09/15 20:11:29 mickey Exp $ */ +/* $OpenBSD: autoconf.c,v 1.42 2004/12/25 23:02:24 miod Exp $ */ /* * Copyright (c) 1998-2003 Michael Shalayeff @@ -295,8 +295,7 @@ getdisk(str, len, defpart, devp) #ifdef RAMDISK_HOOKS printf(" %s[a-p]", fakerdrootdev.dv_xname); #endif - for (dv = alldevs.tqh_first; dv != NULL; - dv = dv->dv_list.tqe_next) { + TAILQ_FOREACH(dv, &alldevs, dv_list) { if (dv->dv_class == DV_DISK) printf(" %s[a-p]", dv->dv_xname); #ifdef NFSCLIENT @@ -339,7 +338,7 @@ parsedisk(str, len, defpart, devp) goto gotdisk; } #endif - for (dv = alldevs.tqh_first; dv != NULL; dv = dv->dv_list.tqe_next) { + TAILQ_FOREACH(dv, &alldevs, dv_list) { if (dv->dv_class == DV_DISK && strcmp(str, dv->dv_xname) == 0) { #ifdef RAMDISK_HOOKS |