diff options
author | Marin Ramesa <mpr@hi.t-com.hr> | 2013-12-17 15:58:26 +0100 |
---|---|---|
committer | Samuel Thibault <samuel.thibault@ens-lyon.org> | 2013-12-17 18:49:23 +0100 |
commit | 68bbdd1e18a87afede6cbdffdb8c7078ed3fa835 (patch) | |
tree | 20518e5f0ed93ec4ec05a1ff09d307ac496313dd /kern/time_stamp.c | |
parent | b5e56770ae41abccdbc28195cc132ff3f8aa1587 (diff) | |
download | gnumach-68bbdd1e18a87afede6cbdffdb8c7078ed3fa835.tar.gz gnumach-68bbdd1e18a87afede6cbdffdb8c7078ed3fa835.tar.bz2 gnumach-68bbdd1e18a87afede6cbdffdb8c7078ed3fa835.zip |
Cleanup of the copyin() and copyout() calls
* device/ds_routines.c (device_write_trap) (copyin) (data): Cast to (void *). Argument is an address.
(device_write_trap) (copyin) (io_data): Don't cast.
(device_writev_trap) (copyin) (iovec, stack_iovec): Likewise.
(device_writev_trap) (copyin) (data, p): Cast to (void *). Arguments are addresses.
* kern/bootstrap.c (build_args_and_stack) (copyout) (arg_count, string_pos, zero): Don't cast.
* kern/ipc_mig.c (syscall_vm_map) (copyin, copyout) (addr, address): Likewise.
(syscall_vm_allocate) (copyin, copyout) (addr, address): Likewise.
(syscall_task_create) (copyout) (name, child_task): Likewise.
(syscall_mach_port_allocate) (copyout) (name, namep): Likewise.
* kern/time_stamp.c (copyout) (temp, tsp): Likewise.
Diffstat (limited to 'kern/time_stamp.c')
-rw-r--r-- | kern/time_stamp.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/time_stamp.c b/kern/time_stamp.c index 2c142746..7f4c0f66 100644 --- a/kern/time_stamp.c +++ b/kern/time_stamp.c @@ -43,8 +43,8 @@ struct tsval *tsp; time_value_t temp; temp = time; - if (copyout((char *)&temp, - (char *)tsp, + if (copyout(&temp, + tsp, sizeof(struct tsval)) != KERN_SUCCESS) return(KERN_INVALID_ADDRESS); return(KERN_SUCCESS); |