We have a function with the same name.
* netlink.c (decode_netlink) <print_array>: Rename to is_array, all
users updated.
* nlattr.c (decode_nlattr) <print_array>: Likewise.
Co-Authored-by: Dmitry V. Levin <ldv@altlinux.org>
}
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("]");
}
}
const void *const opaque_data)
{
struct nlattr nla;
- bool print_array = false;
+ bool is_array = false;
unsigned int elt;
for (elt = 0; fetch_nlattr(tcp, &nla, addr, len); elt++) {
next_addr = addr + nla_len;
}
- if (!print_array && next_addr) {
+ if (!is_array && next_addr) {
tprints("[");
- print_array = true;
+ is_array = true;
}
decode_nlattr_with_data(tcp, &nla, addr, len, table, dflt,
len = next_len;
}
- if (print_array) {
+ if (is_array) {
tprints("]");
}
}