]> granicus.if.org Git - strace/commitdiff
process_vm: change size arguments type from unsigned long to kernel_ureg_t
authorDmitry V. Levin <ldv@altlinux.org>
Sat, 24 Dec 2016 21:31:20 +0000 (21:31 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 25 Dec 2016 11:32:45 +0000 (11:32 +0000)
* 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

index bc9f3aee8480378e949bb8fc98860d5ef900078a..203886ab656e932bb9b3baec8f608c11d8684e5f 100644 (file)
@@ -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]);