]> granicus.if.org Git - strace/blobdiff - pathtrace.c
Print kernel_ureg_t and kernel_scno_t using dedicated format strings
[strace] / 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];