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/sys_process.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/sys_process.c')
-rw-r--r-- | sys/kern/sys_process.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index 2e886d3..63537bd 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -28,7 +28,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: sys_process.c,v 1.5 1994/08/13 03:50:25 wollman Exp $ + * $Id: sys_process.c,v 1.6 1994/08/18 22:35:05 wollman Exp $ */ #include <sys/param.h> @@ -204,7 +204,7 @@ ptrace(curp, uap, retval) int *retval; { struct proc *p; - int s, error = 0; + int error = 0; *retval = 0; if (uap->req == PT_TRACE_ME) { @@ -280,17 +280,17 @@ ptrace(curp, uap, retval) case PT_READ_I: case PT_READ_D: - if (error = pread (p, (unsigned int)uap->addr, retval)) + if ((error = pread (p, (unsigned int)uap->addr, retval))) return error; return 0; case PT_WRITE_I: case PT_WRITE_D: - if (error = pwrite (p, (unsigned int)uap->addr, - (unsigned int)uap->data)) + if ((error = pwrite (p, (unsigned int)uap->addr, + (unsigned int)uap->data))) return error; return 0; case PT_STEP: - if (error = ptrace_single_step (p)) + if ((error = ptrace_single_step (p))) return error; /* fallthrough */ case PT_CONTINUE: @@ -308,7 +308,7 @@ ptrace(curp, uap, retval) if (uap->addr != (caddr_t)1) { fill_eproc (p, &p->p_addr->u_kproc.kp_eproc); - if (error = ptrace_set_pc (p, uap->addr)) + if ((error = ptrace_set_pc (p, uap->addr))) return error; } |