]> granicus.if.org Git - strace/commitdiff
sock: cast pointers to kernel_ureg_t instead of unsigned long
authorDmitry V. Levin <ldv@altlinux.org>
Wed, 21 Dec 2016 14:12:17 +0000 (14:12 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Wed, 21 Dec 2016 23:35:29 +0000 (23:35 +0000)
* sock.c (decode_ifconf): Cast ifconf.ifc_buf pointer to kernel_ureg_t
instead of unsigned long.

sock.c

diff --git a/sock.c b/sock.c
index cf13896bd0d3ea0858a2b19827bfb872ea2b8a3e..3e197ed01971d620bd929e88b3ce7a7554e1e59a 100644 (file)
--- a/sock.c
+++ b/sock.c
@@ -171,7 +171,7 @@ decode_ifconf(struct tcb *tcp, const long addr)
 
        struct ifreq ifra[nifra > max_strlen ? max_strlen : nifra];
        tprints(", ");
-       if (umove_or_printaddr(tcp, (unsigned long) ifc.ifc_buf, &ifra)) {
+       if (umove_or_printaddr(tcp, (kernel_ureg_t) ifc.ifc_buf, &ifra)) {
                tprints("}");
                return RVAL_DECODED | 1;
        }