netlink: fix parameters in snl_attr_get_flag()

MFC after:	2 weeks
This commit is contained in:
Alexander V. Chernikov 2023-04-25 10:57:59 +00:00
parent 70810dc817
commit fab828b455

View File

@ -422,7 +422,8 @@ snl_parse_nlmsg(struct snl_state *ss, struct nlmsghdr *hdr,
}
static inline bool
snl_attr_get_flag(struct snl_state *ss __unused, struct nlattr *nla, void *target)
snl_attr_get_flag(struct snl_state *ss __unused, struct nlattr *nla, const void *arg __unused,
void *target)
{
if (NLA_DATA_LEN(nla) == 0) {
*((uint8_t *)target) = 1;