aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGleb Popov <arrowd@FreeBSD.org>2024-10-31 16:56:51 +0000
committerGleb Popov <arrowd@FreeBSD.org>2024-12-10 18:12:38 +0000
commit33c670c373c065064dd8d8a0cc1623db7e556c5a (patch)
tree6da1e5f73972998ee46baf7f58388132258cf091
parent5143d8c4434cd336ed0239303a51dc2a2d134eb4 (diff)
netlink.h: Align macro declarations with tabs
Sponsored by: Future Crew, LLC Approved by: melifaro Differential Revision: https://reviews.freebsd.org/D47333
-rw-r--r--sys/netlink/netlink.h14
1 files 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
/*