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.
This commit is contained in:
Дмитрий Левин 2016-12-21 14:12:17 +00:00
parent 464566440a
commit fd4d4edd2b

2
sock.c
View File

@ -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;
}