aboutsummaryrefslogtreecommitdiff
path: root/sys/kern/kern_exec.c
diff options
context:
space:
mode:
authorJake Burkholder <jake@FreeBSD.org>2002-08-24 22:55:16 +0000
committerJake Burkholder <jake@FreeBSD.org>2002-08-24 22:55:16 +0000
commitfd559a8a39190baac3e0323716ead55687c6ffcb (patch)
treea76f58c714dba6ceb208c9680a1fbef637efa0fa /sys/kern/kern_exec.c
parentc2926e2329a4cd7b2900b5e09bd6c61e26b87fbf (diff)
downloadsrc-fd559a8a39190baac3e0323716ead55687c6ffcb.tar.gz
src-fd559a8a39190baac3e0323716ead55687c6ffcb.zip
Fixed white space around operators, casts and reserved words.
Reviewed by: md5
Notes
Notes: svn path=/head/; revision=102381
Diffstat (limited to 'sys/kern/kern_exec.c')
-rw-r--r--sys/kern/kern_exec.c17
1 files changed, 8 insertions, 9 deletions
diff --git a/sys/kern/kern_exec.c b/sys/kern/kern_exec.c
index 6b0bcbf10b3f..12374c23ac2a 100644
--- a/sys/kern/kern_exec.c
+++ b/sys/kern/kern_exec.c
@@ -729,7 +729,7 @@ exec_new_vmspace(imgp, minuser, maxuser, stack_addr)
* store to grow upwards. This will do for now.
*/
vm_offset_t bsaddr;
- bsaddr = USRSTACK - 2*maxssiz;
+ bsaddr = USRSTACK - 2 * maxssiz;
error = vm_map_find(&vmspace->vm_map, 0, 0, &bsaddr,
regstkpages * PAGE_SIZE, 0,
VM_PROT_ALL, VM_PROT_ALL, 0);
@@ -767,8 +767,8 @@ exec_extract_strings(imgp)
argv = imgp->uap->argv;
if (argv) {
- argp = (caddr_t) (intptr_t) fuword(argv);
- if (argp == (caddr_t) -1)
+ argp = (caddr_t)(intptr_t)fuword(argv);
+ if (argp == (caddr_t)-1)
return (EFAULT);
if (argp)
argv++;
@@ -776,7 +776,7 @@ exec_extract_strings(imgp)
argp = imgp->argv0;
if (argp) {
do {
- if (argp == (caddr_t) -1)
+ if (argp == (caddr_t)-1)
return (EFAULT);
if ((error = copyinstr(argp, imgp->stringp,
imgp->stringspace, &length))) {
@@ -787,7 +787,7 @@ exec_extract_strings(imgp)
imgp->stringspace -= length;
imgp->stringp += length;
imgp->argc++;
- } while ((argp = (caddr_t) (intptr_t) fuword(argv++)));
+ } while ((argp = (caddr_t)(intptr_t)fuword(argv++)));
}
}
@@ -800,8 +800,8 @@ exec_extract_strings(imgp)
envv = imgp->uap->envv;
if (envv) {
- while ((envp = (caddr_t) (intptr_t) fuword(envv++))) {
- if (envp == (caddr_t) -1)
+ while ((envp = (caddr_t)(intptr_t)fuword(envv++))) {
+ if (envp == (caddr_t)-1)
return (EFAULT);
if ((error = copyinstr(envp, imgp->stringp,
imgp->stringspace, &length))) {
@@ -866,7 +866,7 @@ exec_copyout_strings(imgp)
* the arg and env vector sets,and imgp->auxarg_size is room
* for argument of Runtime loader.
*/
- vectp = (char **) (destp - (imgp->argc + imgp->envc + 2 +
+ vectp = (char **)(destp - (imgp->argc + imgp->envc + 2 +
imgp->auxarg_size) * sizeof(char *));
} else
@@ -1097,4 +1097,3 @@ rm_at_exec(function)
}
return (0);
}
-