summaryrefslogtreecommitdiff
path: root/syscall.c
diff options
context:
space:
mode:
authorDenys Vlasenko <dvlasenk@redhat.com>2015-03-21 19:50:53 +0100
committerDenys Vlasenko <dvlasenk@redhat.com>2015-03-21 19:50:53 +0100
commit7e69ed98cdd3c8ee0bba783927bc95b895c60160 (patch)
tree68f41cf9b33792f2c20efb818f8119b93cd08711 /syscall.c
parent9dce83b8bd172560283f45ba69a583ced139ab02 (diff)
downloadstrace-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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/syscall.c b/syscall.c
index 33b22ecc3..e981a68cf 100644
--- a/syscall.c
+++ b/syscall.c
@@ -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;