git: 33c670c373c0 - main - netlink.h: Align macro declarations with tabs
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 10 Dec 2024 18:13:02 UTC
The branch main has been updated by arrowd:
URL: https://cgit.FreeBSD.org/src/commit/?id=33c670c373c065064dd8d8a0cc1623db7e556c5a
commit 33c670c373c065064dd8d8a0cc1623db7e556c5a
Author: Gleb Popov <arrowd@FreeBSD.org>
AuthorDate: 2024-10-31 16:56:51 +0000
Commit: Gleb Popov <arrowd@FreeBSD.org>
CommitDate: 2024-12-10 18:12:38 +0000
netlink.h: Align macro declarations with tabs
Sponsored by: Future Crew, LLC
Approved by: melifaro
Differential Revision: https://reviews.freebsd.org/D47333
---
sys/netlink/netlink.h | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/sys/netlink/netlink.h b/sys/netlink/netlink.h
index d8cf1401fcd0..2395726e7455 100644
--- a/sys/netlink/netlink.h
+++ b/sys/netlink/netlink.h
@@ -206,15 +206,15 @@ enum nlmsginfo_attrs {
((_len) -= _LEN_MACRO(_ptr), NL_ITEM_NEXT(_ptr, _LEN_MACRO))
/* part of netlink(3) API */
-#define NLMSG_ALIGNTO NL_ITEM_ALIGN_SIZE
-#define NLMSG_ALIGN(_len) NL_ITEM_ALIGN(_len)
+#define NLMSG_ALIGNTO NL_ITEM_ALIGN_SIZE
+#define NLMSG_ALIGN(_len) NL_ITEM_ALIGN(_len)
#ifndef _KERNEL
/* part of netlink(3) API */
-#define NLMSG_HDRLEN (sizeof(struct nlmsghdr))
-#define NLMSG_LENGTH(_len) ((_len) + NLMSG_HDRLEN)
-#define NLMSG_SPACE(_len) NLMSG_ALIGN(NLMSG_LENGTH(_len))
-#define NLMSG_DATA(_hdr) NL_ITEM_DATA(_hdr, NLMSG_HDRLEN)
+#define NLMSG_HDRLEN (sizeof(struct nlmsghdr))
+#define NLMSG_LENGTH(_len) ((_len) + NLMSG_HDRLEN)
+#define NLMSG_SPACE(_len) NLMSG_ALIGN(NLMSG_LENGTH(_len))
+#define NLMSG_DATA(_hdr) NL_ITEM_DATA(_hdr, NLMSG_HDRLEN)
#define _NLMSG_LEN(_hdr) ((_hdr)->nlmsg_len)
#define _NLMSG_ALIGNED_LEN(_hdr) NLMSG_ALIGN(_NLMSG_LEN(_hdr))
#define NLMSG_OK(_hdr, _len) NL_ITEM_OK(_hdr, _len, NLMSG_HDRLEN, _NLMSG_LEN)
@@ -222,7 +222,7 @@ enum nlmsginfo_attrs {
#define NLMSG_NEXT(_hdr, _len) NL_ITEM_ITER(_hdr, _len, _NLMSG_ALIGNED_LEN)
#else
-#define NLMSG_HDRLEN (NLMSG_ALIGN(sizeof(struct nlmsghdr)))
+#define NLMSG_HDRLEN (NLMSG_ALIGN(sizeof(struct nlmsghdr)))
#endif
/*