diff options
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 23b397a..b04662b 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); |