From 5d0e737d004533165838c420baaf7040dca55a9f Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Thu, 22 Dec 2016 02:43:57 +0000 Subject: [PATCH] pathtrace: change tracee address type from unsigned long to kernel_ureg_t * 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 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pathtrace.c b/pathtrace.c index 0dbf55dc..0026e686 100644 --- a/pathtrace.c +++ b/pathtrace.c @@ -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]; -- 2.40.0