]> granicus.if.org Git - strace/commit
Use ptr_to_kulong instead of explicit casts of pointers to kernel_ureg_t
authorDmitry V. Levin <ldv@altlinux.org>
Mon, 26 Dec 2016 01:37:21 +0000 (01:37 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Mon, 26 Dec 2016 01:59:08 +0000 (01:59 +0000)
commit9050affe7c49bf6b7b58ddd444fed47d5ab619b8
tree8addc30dbe5c369d45952b79221b2e55acc86fb5
parent9cbb1861ec6d13a89d54c807e490e2387b89146b
Use ptr_to_kulong instead of explicit casts of pointers to kernel_ureg_t

Direct casts to kernel_ureg_t will not work after the change
of kernel_ureg_t from unsigned long to kernel_ulong_t.

* defs.h (ptr_to_kulong): New macro.
* block.c (print_blkpg_req): Use it instead of explicit casts
to kernel_ureg_t.
* btrfs.c (btrfs_ioctl): Likewise.
* evdev.c (ff_effect_ioctl): Likewise.
* mmsghdr.c (dumpiov_in_mmsghdr): Likewise.
* msghdr.c (print_struct_msghdr, dumpiov_in_msghdr): Likewise.
* mtd.c (decode_mtd_oob_buf): Likewise.
* printsiginfo.c (printsigval, print_si_info): Likewise.
* scsi.c (print_sg_io_v3_req, print_sg_io_v3_res): Likewise.
* sigaltstack.c (print_stack_t): Likewise.
* sock.c (decode_ifconf): Likewise.
* sysctl.c (SYS_FUNC(sysctl)): Likewise.
* util.c (dumpiov_upto): Likewise.
* v4l2.c (print_v4l2_framebuffer, print_v4l2_ext_control,
print_v4l2_ext_controls): Likewise.
14 files changed:
block.c
btrfs.c
defs.h
evdev.c
mmsghdr.c
msghdr.c
mtd.c
printsiginfo.c
scsi.c
sigaltstack.c
sock.c
sysctl.c
util.c
v4l2.c