From: Dmitry V. Levin Date: Mon, 26 Dec 2016 01:19:01 +0000 (+0000) Subject: upoke: remove redundant casts X-Git-Tag: v4.16~165 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=248f17d57f50860bd2753d81223360a9e34b2b3b;p=strace upoke: remove redundant casts * upoke.c (upoke): Remove casts from unsigned long to pointer. --- diff --git a/upoke.c b/upoke.c index 6746099a..7a211467 100644 --- 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;