From 569dc792d5e370755c0e146d3e7ad1c29b7fb298 Mon Sep 17 00:00:00 2001 From: "Dmitry V. Levin" Date: Sat, 24 Dec 2016 21:31:20 +0000 Subject: [PATCH] process_vm: change size arguments type from unsigned long to kernel_ureg_t * process_vm.c (SYS_FUNC(process_vm_readv), SYS_FUNC(process_vm_writev)): Change the type of local_iovcnt, remote_iovcnt, and flags from unsigned long to kernel_ureg_t. --- process_vm.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/process_vm.c b/process_vm.c index bc9f3aee..203886ab 100644 --- a/process_vm.c +++ b/process_vm.c @@ -34,9 +34,9 @@ SYS_FUNC(process_vm_readv) /* arg 1: pid */ tprintf("%d, ", (int) tcp->u_arg[0]); } else { - unsigned long local_iovcnt = tcp->u_arg[2]; - unsigned long remote_iovcnt = tcp->u_arg[4]; - unsigned long flags = tcp->u_arg[5]; + kernel_ureg_t local_iovcnt = tcp->u_arg[2]; + kernel_ureg_t remote_iovcnt = tcp->u_arg[4]; + kernel_ureg_t flags = tcp->u_arg[5]; /* arg 2: local iov */ tprint_iov_upto(tcp, local_iovcnt, tcp->u_arg[1], @@ -56,9 +56,9 @@ SYS_FUNC(process_vm_readv) SYS_FUNC(process_vm_writev) { - unsigned long local_iovcnt = tcp->u_arg[2]; - unsigned long remote_iovcnt = tcp->u_arg[4]; - unsigned long flags = tcp->u_arg[5]; + kernel_ureg_t local_iovcnt = tcp->u_arg[2]; + kernel_ureg_t remote_iovcnt = tcp->u_arg[4]; + kernel_ureg_t flags = tcp->u_arg[5]; /* arg 1: pid */ tprintf("%d, ", (int) tcp->u_arg[0]); -- 2.40.0