summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2023-08-29 14:53:30 +0200
committerPablo Neira Ayuso <pablo@netfilter.org>2023-08-29 19:50:10 +0200
commitbb1be65591fdbf2c57fcaf68d64ce56b34c847ad (patch)
treeb1eeabdfd54b1804f8dba2eb8a8e3f8517e1a179 /src
parent6d50e520bed653bc12b30a9936af77c8fe3b4efd (diff)
netlink: avoid "-Wenum-conversion" warning in dtype_map_from_kernel()
Clang warns: netlink.c:806:26: error: implicit conversion from enumeration type 'enum nft_data_types' to different enumeration type 'enum datatypes' [-Werror,-Wenum-conversion] return datatype_lookup(type); ~~~~~~~~~~~~~~~ ^~~~ Signed-off-by: Thomas Haller <thaller@redhat.com> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'src')
-rw-r--r--src/netlink.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/netlink.c b/src/netlink.c
index e1904a99..1afe162e 100644
--- a/src/netlink.c
+++ b/src/netlink.c
@@ -803,7 +803,7 @@ static const struct datatype *dtype_map_from_kernel(enum nft_data_types type)
default:
if (type & ~TYPE_MASK)
return concat_type_alloc(type);
- return datatype_lookup(type);
+ return datatype_lookup((enum datatypes) type);
}
}