diff options
author | Denys Vlasenko <dvlasenk@redhat.com> | 2015-03-21 19:50:53 +0100 |
---|---|---|
committer | Denys Vlasenko <dvlasenk@redhat.com> | 2015-03-21 19:50:53 +0100 |
commit | 7e69ed98cdd3c8ee0bba783927bc95b895c60160 (patch) | |
tree | 68f41cf9b33792f2c20efb818f8119b93cd08711 /syscall.c | |
parent | 9dce83b8bd172560283f45ba69a583ced139ab02 (diff) | |
download | strace-7e69ed98cdd3c8ee0bba783927bc95b895c60160.tar.gz |
Change last parameter of umoven() from char* to void*
Saves tons of casts.
Signed-off-by: Denys Vlasenko <dvlasenk@redhat.com>
Diffstat (limited to 'syscall.c')
-rw-r--r-- | syscall.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1559,7 +1559,7 @@ get_syscall_args(struct tcb *tcp) for (i = 0; i < nargs; ++i) { if (umoven(tcp, (unsigned long) ia64_rse_skip_regs(out0, i), - sizeof(long), (char *) &tcp->u_arg[i]) < 0) + sizeof(long), &tcp->u_arg[i]) < 0) return -1; } } else { @@ -1601,7 +1601,7 @@ get_syscall_args(struct tcb *tcp) if (nargs > 4) { umoven(tcp, mips_REG_SP + 4 * 4, (nargs - 4) * sizeof(tcp->u_arg[0]), - (char *)(tcp->u_arg + 4)); + &tcp->u_arg[4]); } #elif defined(POWERPC) (void)i; |