diff options
author | phk <phk@FreeBSD.org> | 2004-07-13 16:33:38 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2004-07-13 16:33:38 +0000 |
commit | e86017f8eb77f54dfdeed7f20270a42268c136ff (patch) | |
tree | f6fa9245a6eec55c7969c520fcd276ff9472ddd2 /sys/kern | |
parent | 6218cf3dacdd1f88f935e9de9e7c1a22a5804235 (diff) | |
download | FreeBSD-src-e86017f8eb77f54dfdeed7f20270a42268c136ff.zip FreeBSD-src-e86017f8eb77f54dfdeed7f20270a42268c136ff.tar.gz |
fix compilation.
Diffstat (limited to 'sys/kern')
-rw-r--r-- | sys/kern/kern_fork.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/kern_fork.c b/sys/kern/kern_fork.c index 440c39c4..7a9f234 100644 --- a/sys/kern/kern_fork.c +++ b/sys/kern/kern_fork.c @@ -300,7 +300,7 @@ fork1(td, flags, pages, procp) */ sx_xlock(&allproc_lock); uid = td->td_ucred->cr_ruid; - if ((nprocs >= maxproc - 10 && suser(td->td_ucred) != 0) || + if ((nprocs >= maxproc - 10 && suser(td) != 0) || nprocs >= maxproc) { error = EAGAIN; goto fail; |