git: 03de61aabb40 - main - netlink: fix NLMSG_SPACE() macro.
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 31 Oct 2022 15:04:11 UTC
The branch main has been updated by melifaro: URL: https://cgit.FreeBSD.org/src/commit/?id=03de61aabb40dab3c7311e1664c85e41dafe29b4 commit 03de61aabb40dab3c7311e1664c85e41dafe29b4 Author: Alexander V. Chernikov <melifaro@FreeBSD.org> AuthorDate: 2022-10-31 15:02:12 +0000 Commit: Alexander V. Chernikov <melifaro@FreeBSD.org> CommitDate: 2022-10-31 15:02:12 +0000 netlink: fix NLMSG_SPACE() macro. Reported by: bapt --- sys/netlink/netlink.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/netlink/netlink.h b/sys/netlink/netlink.h index 6a68dcec1382..3623ae754951 100644 --- a/sys/netlink/netlink.h +++ b/sys/netlink/netlink.h @@ -205,7 +205,7 @@ enum nlmsgerr_attrs { #define NLMSG_ALIGN(_len) NL_ITEM_ALIGN(_len) #define NLMSG_HDRLEN ((int)sizeof(struct nlmsghdr)) #define NLMSG_LENGTH(_len) ((_len) + NLMSG_HDRLEN) -#define NLMSG_SPACE(len) NLMSG_ALIGN(NLMSG_LENGTH(_len)) +#define NLMSG_SPACE(_len) NLMSG_ALIGN(NLMSG_LENGTH(_len)) #define NLMSG_DATA(_hdr) NL_ITEM_DATA(_hdr, NLMSG_HDRLEN) #define _NLMSG_LEN(_hdr) ((int)(_hdr)->nlmsg_len) #define _NLMSG_ALIGNED_LEN(_hdr) NLMSG_ALIGN(_NLMSG_LEN(_hdr))