const size_t nmemb = len / sizeof(cookie);
print_array(tcp, addr, nmemb, &cookie, sizeof(cookie),
- umoven_or_printaddr, print_cookie, 0);
+ tfetch_mem, print_cookie, 0);
return true;
}
}
struct nlmsghdr nlmsghdr;
- bool print_array = false;
+ bool is_array = false;
unsigned int elt;
for (elt = 0; fetch_nlmsghdr(tcp, &nlmsghdr, addr, len); elt++) {
next_addr = addr + nlmsg_len;
}
- if (!print_array && next_addr) {
+ if (!is_array && next_addr) {
tprints("[");
- print_array = true;
+ is_array = true;
}
decode_nlmsghdr_with_payload(tcp, fd, family,
len = next_len;
}
- if (print_array) {
+ if (is_array) {
tprints("]");
}
}