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_xxx.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_xxx.c')
-rw-r--r-- | sys/kern/kern_xxx.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/kern_xxx.c b/sys/kern/kern_xxx.c index 18b61a6..0ada2b3 100644 --- a/sys/kern/kern_xxx.c +++ b/sys/kern/kern_xxx.c @@ -31,7 +31,7 @@ * SUCH DAMAGE. * * @(#)kern_xxx.c 8.2 (Berkeley) 11/14/93 - * $Id: kern_xxx.c,v 1.5 1994/08/18 22:35:04 wollman Exp $ + * $Id: kern_xxx.c,v 1.6 1994/09/19 21:15:14 ache Exp $ */ #include <sys/param.h> @@ -55,7 +55,7 @@ reboot(p, uap, retval) { int error; - if (error = suser(p->p_ucred, &p->p_acflag)) + if ((error = suser(p->p_ucred, &p->p_acflag))) return (error); boot(uap->opt); return (0); @@ -94,7 +94,7 @@ osethostname(p, uap, retval) int name; int error; - if (error = suser(p->p_ucred, &p->p_acflag)) + if ((error = suser(p->p_ucred, &p->p_acflag))) return (error); name = KERN_HOSTNAME; return (kern_sysctl(&name, 1, 0, 0, uap->hostname, uap->len, p)); @@ -129,7 +129,7 @@ osethostid(p, uap, retval) { int error; - if (error = suser(p->p_ucred, &p->p_acflag)) + if ((error = suser(p->p_ucred, &p->p_acflag))) return (error); hostid = uap->hostid; return (0); @@ -252,7 +252,7 @@ setdomainname(p, uap, retval) { int error; - if (error = suser(p->p_ucred, &p->p_acflag)) + if ((error = suser(p->p_ucred, &p->p_acflag))) return (error); if (uap->len > sizeof (domainname) - 1) return EINVAL; |