]> granicus.if.org Git - strace/commitdiff
numa: change address argument type from unsigned long to kernel_ureg_t
authorDmitry V. Levin <ldv@altlinux.org>
Fri, 23 Dec 2016 19:59:46 +0000 (19:59 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Fri, 23 Dec 2016 22:24:23 +0000 (22:24 +0000)
* numa.c (print_nodemask): Change address argument type from
unsigned long to kernel_ureg_t.

numa.c

diff --git a/numa.c b/numa.c
index b46fc7fc4a9d07c48de25db6350feeb6d404e938..b49e9a6f02098836a1e6e48b145a3292e1f328da 100644 (file)
--- a/numa.c
+++ b/numa.c
@@ -43,7 +43,8 @@ print_node(struct tcb *tcp, void *elem_buf, size_t elem_size, void *data)
 }
 
 static void
-print_nodemask(struct tcb *tcp, unsigned long addr, unsigned long maxnodes)
+print_nodemask(struct tcb *const tcp, const kernel_ureg_t addr,
+              const unsigned long maxnodes)
 {
        const unsigned long nmemb =
                (maxnodes + 8 * current_wordsize - 2) / (8 * current_wordsize);