aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src/netlink.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/netlink.c')
-rw-r--r--src/netlink.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/netlink.c b/src/netlink.c
index ff32fb6..71da081 100644
--- a/src/netlink.c
+++ b/src/netlink.c
@@ -471,12 +471,10 @@ static const struct genl_ops genl_ops[] = {
}
};
-#ifndef COMPAT_CANNOT_USE_GENL_NOPS
static struct genl_family genl_family __ro_after_init = {
+#ifndef COMPAT_CANNOT_USE_GENL_NOPS
.ops = genl_ops,
.n_ops = ARRAY_SIZE(genl_ops),
-#else
-static struct genl_family genl_family = {
#endif
.name = WG_GENL_NAME,
.version = WG_GENL_VERSION,