From: Dmitry V. Levin Date: Wed, 21 Dec 2016 14:12:17 +0000 (+0000) Subject: sock: cast pointers to kernel_ureg_t instead of unsigned long X-Git-Tag: v4.16~296 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fd4d4edd2ba4f022f3bd489b221a7e826af05fbc;p=strace sock: cast pointers to kernel_ureg_t instead of unsigned long * sock.c (decode_ifconf): Cast ifconf.ifc_buf pointer to kernel_ureg_t instead of unsigned long. --- diff --git a/sock.c b/sock.c index cf13896b..3e197ed0 100644 --- 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; }