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 /pathtrace.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 'pathtrace.c')
-rw-r--r-- | pathtrace.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pathtrace.c b/pathtrace.c index 28fc7c9a..0db7fe31 100644 --- a/pathtrace.c +++ b/pathtrace.c @@ -270,7 +270,7 @@ pathtrace_match(struct tcb *tcp) args = tcp->u_arg; if (s->sys_func == sys_oldselect) { if (umoven(tcp, tcp->u_arg[0], sizeof oldargs, - (char*) oldargs) < 0) + oldargs) < 0) { fprintf(stderr, "umoven() failed\n"); return 0; @@ -294,7 +294,7 @@ pathtrace_match(struct tcb *tcp) for (i = 1; i <= 3; ++i) { if (args[i] == 0) continue; - if (umoven(tcp, args[i], fdsize, (char *) fds) < 0) { + if (umoven(tcp, args[i], fdsize, fds) < 0) { fprintf(stderr, "umoven() failed\n"); continue; } @@ -328,7 +328,7 @@ pathtrace_match(struct tcb *tcp) return 0; for (cur = start; cur < end; cur += sizeof(fds)) - if ((umoven(tcp, cur, sizeof fds, (char *) &fds) == 0) + if ((umoven(tcp, cur, sizeof fds, &fds) == 0) && fdmatch(tcp, fds.fd)) return 1; |