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_exit.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_exit.c')
-rw-r--r-- | sys/kern/kern_exit.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/sys/kern/kern_exit.c b/sys/kern/kern_exit.c index 5fe6faa..82d303b 100644 --- a/sys/kern/kern_exit.c +++ b/sys/kern/kern_exit.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * @(#)kern_exit.c 8.7 (Berkeley) 2/12/94 - * $Id: kern_exit.c,v 1.5 1994/08/24 11:50:39 sos Exp $ + * $Id: kern_exit.c,v 1.6 1994/09/12 11:27:03 davidg Exp $ */ #include <sys/param.h> @@ -194,9 +194,9 @@ exit1(p, rv) * Remove proc from allproc queue and pidhash chain. * Place onto zombproc. Unlink from parent's child list. */ - if (*p->p_prev = p->p_next) + if ((*p->p_prev = p->p_next)) p->p_next->p_prev = p->p_prev; - if (p->p_next = zombproc) + if ((p->p_next = zombproc)) p->p_next->p_prev = &p->p_next; p->p_prev = &zombproc; zombproc = p; @@ -382,8 +382,8 @@ loop: #endif if (uap->status) { status = p->p_xstat; /* convert to int */ - if (error = copyout((caddr_t)&status, - (caddr_t)uap->status, sizeof(status))) + if ((error = copyout((caddr_t)&status, + (caddr_t)uap->status, sizeof(status)))) return (error); } if (uap->rusage && (error = copyout((caddr_t)p->p_ru, @@ -428,11 +428,11 @@ loop: * Unlink it from its process group and free it. */ leavepgrp(p); - if (*p->p_prev = p->p_next) /* off zombproc */ + if ((*p->p_prev = p->p_next)) /* off zombproc */ p->p_next->p_prev = p->p_prev; - if (q = p->p_ysptr) + if ((q = p->p_ysptr)) q->p_osptr = p->p_osptr; - if (q = p->p_osptr) + if ((q = p->p_osptr)) q->p_ysptr = p->p_ysptr; if ((q = p->p_pptr)->p_cptr == p) q->p_cptr = p->p_osptr; @@ -472,7 +472,7 @@ loop: retval[0] = 0; return (0); } - if (error = tsleep((caddr_t)q, PWAIT | PCATCH, "wait", 0)) + if ((error = tsleep((caddr_t)q, PWAIT | PCATCH, "wait", 0))) return (error); goto loop; } |