diff options
author | phk <phk@FreeBSD.org> | 1994-09-25 19:34:02 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 1994-09-25 19:34:02 +0000 |
commit | f73f35898343587c73fd60422f7c2b15d42bae85 (patch) | |
tree | 2bdcafaa0162204e5a4853957c908b232cb276c8 /sys/kern/kern_resource.c | |
parent | 3346279530bc82ada4f70172db34ce0ddbb269bf (diff) | |
download | FreeBSD-src-f73f35898343587c73fd60422f7c2b15d42bae85.zip FreeBSD-src-f73f35898343587c73fd60422f7c2b15d42bae85.tar.gz |
While in the real world, I had a bad case of being swapped out for a lot of
cycles. While waiting there I added a lot of the extra ()'s I have, (I have
never used LISP to any extent). So I compiled the kernel with -Wall and
shut up a lot of "suggest you add ()'s", removed a bunch of unused var's
and added a couple of declarations here and there. Having a lap-top is
highly recommended. My kernel still runs, yell at me if you kernel breaks.
Diffstat (limited to 'sys/kern/kern_resource.c')
-rw-r--r-- | sys/kern/kern_resource.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sys/kern/kern_resource.c b/sys/kern/kern_resource.c index 06d749c..704c501 100644 --- a/sys/kern/kern_resource.c +++ b/sys/kern/kern_resource.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)kern_resource.c 8.5 (Berkeley) 1/21/94 - * $Id: kern_resource.c,v 1.3 1994/08/02 07:42:10 davidg Exp $ + * $Id: kern_resource.c,v 1.4 1994/09/01 05:12:40 davidg Exp $ */ #include <sys/param.h> @@ -267,8 +267,8 @@ osetrlimit(p, uap, retval) struct rlimit lim; int error; - if (error = - copyin((caddr_t)uap->lim, (caddr_t)&olim, sizeof (struct orlimit))) + if ((error = + copyin((caddr_t)uap->lim, (caddr_t)&olim, sizeof(struct orlimit)))) return (error); lim.rlim_cur = olim.rlim_cur; lim.rlim_max = olim.rlim_max; @@ -314,8 +314,8 @@ setrlimit(p, uap, retval) struct rlimit alim; int error; - if (error = - copyin((caddr_t)uap->lim, (caddr_t)&alim, sizeof (struct rlimit))) + if ((error = + copyin((caddr_t)uap->lim, (caddr_t)&alim, sizeof (struct rlimit)))) return (error); return (dosetrlimit(p, uap->which, &alim)); } @@ -334,7 +334,7 @@ dosetrlimit(p, which, limp) alimp = &p->p_rlimit[which]; if (limp->rlim_cur > alimp->rlim_max || limp->rlim_max > alimp->rlim_max) - if (error = suser(p->p_ucred, &p->p_acflag)) + if ((error = suser(p->p_ucred, &p->p_acflag))) return (error); if (limp->rlim_cur > limp->rlim_max) limp->rlim_cur = limp->rlim_max; |