]> granicus.if.org Git - strace/commitdiff
upoke: remove redundant casts
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 26 Dec 2016 01:19:01 +0000 (01:19 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 26 Dec 2016 01:29:35 +0000 (01:29 +0000)
* upoke.c (upoke): Remove casts from unsigned long to pointer.

upoke.c

diff --git a/upoke.c b/upoke.c
index 6746099aaf77bbdc16ad445371b5efb393470227..7a211467153ea5c9e8f8681b820195604088a21f 100644 (file)
--- a/upoke.c
+++ b/upoke.c
@@ -31,7 +31,7 @@
 int
 upoke(int pid, unsigned long off, kernel_ureg_t val)
 {
-       if (ptrace(PTRACE_POKEUSER, (pid_t) pid, (void *) off, (void *) val)) {
+       if (ptrace(PTRACE_POKEUSER, pid, off, val)) {
                if (errno != ESRCH)
                        perror_msg("upoke: PTRACE_POKEUSER pid:%d @%#lx)", pid, off);
                return -1;