diff options
Diffstat (limited to 'sys/kern/kern_descrip.c')
-rw-r--r-- | sys/kern/kern_descrip.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index 6f4ed75..e1fcf09 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -394,7 +394,7 @@ funsetownlst(sigiolst) { struct sigio *sigio; - while ((sigio = sigiolst->slh_first) != NULL) + while ((sigio = SLIST_FIRST(sigiolst)) != NULL) funsetown(sigio); } @@ -1226,7 +1226,7 @@ sysctl_kern_file SYSCTL_HANDLER_ARGS /* * followed by an array of file structures */ - for (fp = filehead.lh_first; fp != NULL; fp = fp->f_list.le_next) { + LIST_FOREACH(fp, &filehead, f_list) { error = SYSCTL_OUT(req, (caddr_t)fp, sizeof (struct file)); if (error) return (error); |