diff options
author | 2004-12-26 21:22:11 +0000 | |
---|---|---|
committer | 2004-12-26 21:22:11 +0000 | |
commit | 9d08f8e56428da94db79b31da31f4e37cb4022b7 (patch) | |
tree | 85404d1033f1e95cb08994035802c1e568059230 /sys/kern/subr_disk.c | |
parent | Remove duplicate definition of LONG_DOUBLE_TYPE_SIZE, and shrink WINT_TYPE (diff) | |
download | wireguard-openbsd-9d08f8e56428da94db79b31da31f4e37cb4022b7.tar.xz wireguard-openbsd-9d08f8e56428da94db79b31da31f4e37cb4022b7.zip |
Use list and queue macros where applicable to make the code easier to read;
no change in compiler assembly output.
Diffstat (limited to 'sys/kern/subr_disk.c')
-rw-r--r-- | sys/kern/subr_disk.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/subr_disk.c b/sys/kern/subr_disk.c index c406946a460..985f430beb3 100644 --- a/sys/kern/subr_disk.c +++ b/sys/kern/subr_disk.c @@ -1,4 +1,4 @@ -/* $OpenBSD: subr_disk.c,v 1.28 2004/11/01 03:43:24 pedro Exp $ */ +/* $OpenBSD: subr_disk.c,v 1.29 2004/12/26 21:22:13 miod Exp $ */ /* $NetBSD: subr_disk.c,v 1.17 1996/03/16 23:17:08 christos Exp $ */ /* @@ -257,8 +257,7 @@ disk_find(name) if ((name == NULL) || (disk_count <= 0)) return (NULL); - for (diskp = disklist.tqh_first; diskp != NULL; - diskp = diskp->dk_link.tqe_next) + TAILQ_FOREACH(diskp, &disklist, dk_link) if (strcmp(diskp->dk_name, name) == 0) return (diskp); |