diff options
author | des <des@FreeBSD.org> | 2001-10-04 16:35:44 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2001-10-04 16:35:44 +0000 |
commit | 0e3cf8a851c3feea1091551eb1f40f34a236f538 (patch) | |
tree | bb65ae6405cb26d138c8d8dec23899097bc2d135 /sys | |
parent | 931b23f574cda22ff7ad9144037d7cd9597f981a (diff) | |
download | FreeBSD-src-0e3cf8a851c3feea1091551eb1f40f34a236f538.zip FreeBSD-src-0e3cf8a851c3feea1091551eb1f40f34a236f538.tar.gz |
Final style(9) commit: placement of opening brace; a continuation indent I
missed in the previous commit; a line that exceeded 80 characters. No
functional changes, but the object file's md5 checksum changes because some
lines have been displaced.
Diffstat (limited to 'sys')
-rw-r--r-- | sys/kern/sys_process.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/sys/kern/sys_process.c b/sys/kern/sys_process.c index 1513c3e..4627b2d 100644 --- a/sys/kern/sys_process.c +++ b/sys/kern/sys_process.c @@ -54,7 +54,8 @@ /* use the equivalent procfs code */ #if 0 static int -pread(struct proc *procp, unsigned int addr, unsigned int *retval) { +pread(struct proc *procp, unsigned int addr, unsigned int *retval) +{ int rv; vm_map_t map, tmap; vm_object_t object; @@ -75,7 +76,7 @@ pread(struct proc *procp, unsigned int addr, unsigned int *retval) { tmap = map; rv = vm_map_lookup(&tmap, pageno, VM_PROT_READ, &out_entry, - &object, &pindex, &out_prot, &wired); + &object, &pindex, &out_prot, &wired); if (rv != KERN_SUCCESS) return (EINVAL); @@ -93,7 +94,7 @@ pread(struct proc *procp, unsigned int addr, unsigned int *retval) { if (!rv) { *retval = 0; bcopy((caddr_t)kva + page_offset, - retval, sizeof *retval); + retval, sizeof *retval); } vm_map_remove(kernel_map, kva, kva + PAGE_SIZE); } @@ -102,7 +103,8 @@ pread(struct proc *procp, unsigned int addr, unsigned int *retval) { } static int -pwrite(struct proc *procp, unsigned int addr, unsigned int datum) { +pwrite(struct proc *procp, unsigned int addr, unsigned int datum) +{ int rv; vm_map_t map, tmap; vm_object_t object; @@ -422,7 +424,8 @@ ptrace(td, uap) case PT_READ_I: case PT_READ_D: /* write = 0 set above */ - iov.iov_base = write ? (caddr_t)&uap->data : (caddr_t)td->td_retval; + iov.iov_base = write ? (caddr_t)&uap->data : + (caddr_t)td->td_retval; iov.iov_len = sizeof(int); uio.uio_iov = &iov; uio.uio_iovcnt = 1; |