diff options
author | Poul-Henning Kamp <phk@FreeBSD.org> | 1994-09-25 19:34:02 +0000 |
---|---|---|
committer | Poul-Henning Kamp <phk@FreeBSD.org> | 1994-09-25 19:34:02 +0000 |
commit | bb56ec4a05a1131388e557b919e6ee6b2d0626c9 (patch) | |
tree | 2bdcafaa0162204e5a4853957c908b232cb276c8 /sys/kern/kern_xxx.c | |
parent | 9a89db44b80b1ad690e45dc24b5b9630b314f697 (diff) | |
download | src-bb56ec4a05a1131388e557b919e6ee6b2d0626c9.tar.gz src-bb56ec4a05a1131388e557b919e6ee6b2d0626c9.zip |
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.
Notes
Notes:
svn path=/head/; revision=3098
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 18b61a62aa3a..0ada2b3e0342 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; |