diff options
| author | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-11-16 10:56:05 +0000 |
|---|---|---|
| committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1999-11-16 10:56:05 +0000 |
| commit | 2e3c8fcbd03b568879cf99db149e31002841cb8c (patch) | |
| tree | d8a3cb26e484830479c8386ecba6b7d0157acc06 /sys/kern/subr_devstat.c | |
| parent | b945938c632aa17a5c1e475758d18fc9febf3cbd (diff) | |
Notes
Diffstat (limited to 'sys/kern/subr_devstat.c')
| -rw-r--r-- | sys/kern/subr_devstat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/subr_devstat.c b/sys/kern/subr_devstat.c index 23b397aead13..b04662b196a0 100644 --- a/sys/kern/subr_devstat.c +++ b/sys/kern/subr_devstat.c @@ -281,9 +281,9 @@ sysctl_devstat SYSCTL_HANDLER_ARGS /* * Now push out all the devices. */ - for (i = 0, nds = devstat_head->stqh_first; + for (i = 0, nds = STAILQ_FIRST(devstat_head); (nds != NULL) && (i < devstat_num_devs) && (error == 0); - nds = nds->dev_links.stqe_next, i++) + nds = STAILQ_NEXT(nds, dev_links), i++) error = SYSCTL_OUT(req, nds, sizeof(struct devstat)); return(error); |
