]> granicus.if.org Git - strace/commitdiff
evdev: cast pointers to kernel_ureg_t instead of unsigned long
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 21 Dec 2016 13:13:08 +0000 (13:13 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 21 Dec 2016 23:35:28 +0000 (23:35 +0000)
* evdev.c (ff_effect_ioctl): Cast ff_periodic_effect.custom_data
pointer to kernel_ureg_t instead of unsigned long.

evdev.c

diff --git a/evdev.c b/evdev.c
index b24f9d320b2dc4a0b8b5c7131403e844425d802f..2d02b3c7b7f2d11e1e82028054bce4748d81e29a 100644 (file)
--- a/evdev.c
+++ b/evdev.c
@@ -135,7 +135,7 @@ ff_effect_ioctl(struct tcb *tcp, long arg)
                        decode_envelope(&ffe.u.periodic.envelope);
                        tprintf(", custom_len=%u, custom_data=",
                                ffe.u.periodic.custom_len);
-                       printaddr((unsigned long) ffe.u.periodic.custom_data);
+                       printaddr((kernel_ureg_t) ffe.u.periodic.custom_data);
                        tprints("}");
                        break;
                case FF_RUMBLE: