}
static void
-print_ifreq(struct tcb *tcp, const unsigned int code, const long arg,
- const struct ifreq *ifr)
+print_ifreq(struct tcb *const tcp, const unsigned int code,
+ const kernel_ureg_t arg, const struct ifreq *const ifr)
{
switch (code) {
case SIOCSIFADDR:
}
static int
-decode_ifconf(struct tcb *tcp, const long addr)
+decode_ifconf(struct tcb *const tcp, const kernel_ureg_t addr)
{
struct ifconf ifc;
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, ptr_to_kulong(ifc.ifc_buf), &ifra)) {
tprints("}");
return RVAL_DECODED | 1;
}
}
int
-sock_ioctl(struct tcb *tcp, const unsigned int code, const long arg)
+sock_ioctl(struct tcb *const tcp, const unsigned int code, const kernel_ureg_t arg)
{
struct ifreq ifr;
case SIOCBRADDBR:
case SIOCBRDELBR:
tprints(", ");
- printstr(tcp, arg, -1);
+ printstr(tcp, arg);
break;
#endif