]> granicus.if.org Git - strace/commitdiff
block: change type of ioctl 3rd argument from long to kernel_ureg_t
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 21 Dec 2016 03:03:09 +0000 (03:03 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Sun, 25 Dec 2016 11:32:44 +0000 (11:32 +0000)
* block.c (block_ioctl): Change arg type from long to kernel_ureg_t.

block.c

diff --git a/block.c b/block.c
index bf02888c2a94f2a1394cc172ca03dab9fd4aba5a..d6b6a793c7237add5ac59e3012b31dd8199df5e3 100644 (file)
--- a/block.c
+++ b/block.c
@@ -143,8 +143,8 @@ print_blkpg_req(struct tcb *tcp, const struct_blkpg_ioctl_arg *blkpg)
        tprints("}");
 }
 
-MPERS_PRINTER_DECL(int, block_ioctl, struct tcb *tcp,
-                  const unsigned int code, const long arg)
+MPERS_PRINTER_DECL(int, block_ioctl, struct tcb *const tcp,
+                  const unsigned int code, const kernel_ureg_t arg)
 {
        switch (code) {
        /* take arg as a value, not as a pointer */