Date: Tue, 25 Apr 2023 11:15:31 GMT From: "Alexander V. Chernikov" <melifaro@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: fab828b45580 - main - netlink: fix parameters in snl_attr_get_flag() Message-ID: <202304251115.33PBFV49012742@gitrepo.freebsd.org>
next in thread | raw e-mail | index | archive | help
The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=fab828b45580df575c2ef154b3799ba74532bd16 commit fab828b45580df575c2ef154b3799ba74532bd16 Author: Alexander V. Chernikov <melifaro@FreeBSD.org> AuthorDate: 2023-04-25 10:57:59 +0000 Commit: Alexander V. Chernikov <melifaro@FreeBSD.org> CommitDate: 2023-04-25 10:57:59 +0000 netlink: fix parameters in snl_attr_get_flag() MFC after: 2 weeks --- sys/netlink/netlink_snl.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/netlink/netlink_snl.h b/sys/netlink/netlink_snl.h index 88d7c3a1fc22..7eac38961a45 100644 --- a/sys/netlink/netlink_snl.h +++ b/sys/netlink/netlink_snl.h @@ -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;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202304251115.33PBFV49012742>