about summary refs log tree commit diff
path: root/src/libnm-platform/nm-netlink.h
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2025-02-12 13:46:55 +0100
committerMichael Biebl <biebl@debian.org>2025-02-12 13:46:55 +0100
commitec170f43021cdc93a65151f4646875cd3aa42a13 (patch)
treeedd6f226af21951b7b4ae1954308594413610513 /src/libnm-platform/nm-netlink.h
parentd5d9f6796c16f29776c619f464811917e46521f4 (diff)
parent8bdf070ff046f482f6eb5e2b15ebc216f5d1e3da (diff)
Update upstream source from tag 'upstream/1.51.90'
Update to upstream version '1.51.90'
with Debian dir 5ed61494ac9853892cd39fb1e4debd23f234a5b9
Diffstat (limited to 'src/libnm-platform/nm-netlink.h')
-rw-r--r--src/libnm-platform/nm-netlink.h21
1 files changed, 11 insertions, 10 deletions
diff --git a/src/libnm-platform/nm-netlink.h b/src/libnm-platform/nm-netlink.h
index efd482ad..42a81d84 100644
--- a/src/libnm-platform/nm-netlink.h
+++ b/src/libnm-platform/nm-netlink.h
@@ -93,19 +93,20 @@ struct nla_policy {
 
 /* static asserts that @tb and @policy are suitable arguments to nla_parse(). */
 #if _NM_CC_SUPPORT_GENERIC
-#define _nl_static_assert_tb(tb, policy)                                                 \
-    G_STMT_START                                                                         \
-    {                                                                                    \
-        G_STATIC_ASSERT_EXPR(G_N_ELEMENTS(tb) > 0);                                      \
-                                                                                         \
+#define _nl_static_assert_tb(tb, policy)                                                     \
+    G_STMT_START                                                                             \
+    {                                                                                        \
+        G_STATIC_ASSERT_EXPR(G_N_ELEMENTS(tb) > 0);                                          \
+                                                                                             \
         /* We allow @policy to be either a C array or NULL. The sizeof()
          * must either match the expected array size or we check that
          * "policy" has typeof(NULL). This isn't a perfect compile time check,
-         * but good enough. */                 \
-        G_STATIC_ASSERT_EXPR(_Generic((policy),                                          \
-            typeof(NULL): 1,                                                             \
-            default: (sizeof(policy) == G_N_ELEMENTS(tb) * sizeof(struct nla_policy)))); \
-    }                                                                                    \
+         * but good enough. */                     \
+        G_STATIC_ASSERT_EXPR(                                                                \
+            _Generic((policy),                                                               \
+                typeof(NULL): 1,                                                             \
+                default: (sizeof(policy) == G_N_ELEMENTS(tb) * sizeof(struct nla_policy)))); \
+    }                                                                                        \
     G_STMT_END
 #else
 #define _nl_static_assert_tb(tb, policy) G_STATIC_ASSERT_EXPR(G_N_ELEMENTS(tb) > 0)