static void
print_ifreq(struct tcb *const tcp, const unsigned int code,
- const kernel_ureg_t arg, const struct ifreq *const ifr)
+ const kernel_ulong_t arg, const struct ifreq *const ifr)
{
switch (code) {
case SIOCSIFADDR:
}
static int
-decode_ifconf(struct tcb *const tcp, const kernel_ureg_t addr)
+decode_ifconf(struct tcb *const tcp, const kernel_ulong_t addr)
{
struct ifconf ifc;
struct ifreq ifra[nifra > max_strlen ? max_strlen : nifra];
tprints(", ");
- if (umove_or_printaddr(tcp, (kernel_ureg_t) ifc.ifc_buf, &ifra)) {
+ if (umove_or_printaddr(tcp, ptr_to_kulong(ifc.ifc_buf), &ifra)) {
tprints("}");
return RVAL_DECODED | 1;
}
}
int
-sock_ioctl(struct tcb *const tcp, const unsigned int code, const kernel_ureg_t arg)
+sock_ioctl(struct tcb *const tcp, const unsigned int code, const kernel_ulong_t arg)
{
struct ifreq ifr;
case SIOCBRADDBR:
case SIOCBRDELBR:
tprints(", ");
- printstr(tcp, arg, -1);
+ printstr(tcp, arg);
break;
#endif