]> granicus.if.org Git - strace/commitdiff
pathtrace: change tracee address type from unsigned long to kernel_ureg_t
authorDmitry V. Levin <ldv@altlinux.org>
Thu, 22 Dec 2016 02:43:57 +0000 (02:43 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 23 Dec 2016 19:26:58 +0000 (19:26 +0000)
* pathtrace.c (upathmatch): Change address argument type
from unsigned long to kernel_ureg_t.
(pathtrace_match): Change the type of all tracee address variables
from unsigned long to kernel_ureg_t.

pathtrace.c

index 0dbf55dc6cfcd048690803c1fec009609e09656a..0026e686739d5ff11656002eec11ed43381d94c4 100644 (file)
@@ -54,7 +54,7 @@ pathmatch(const char *path)
  * Return true if specified path (in user-space) matches.
  */
 static int
-upathmatch(struct tcb *tcp, unsigned long upath)
+upathmatch(struct tcb *const tcp, const kernel_ureg_t upath)
 {
        char path[PATH_MAX + 1];
 
@@ -311,7 +311,7 @@ pathtrace_match(struct tcb *tcp)
        {
                struct pollfd fds;
                unsigned nfds;
-               unsigned long start, cur, end;
+               kernel_ureg_t start, cur, end;
 
                start = tcp->u_arg[0];
                nfds = tcp->u_arg[1];