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:
parent
464566440a
commit
fd4d4edd2b
2
sock.c
2
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user