summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/expression.c2
-rw-r--r--src/rule.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/expression.c b/src/expression.c
index ce7fef09..9b53f43b 100644
--- a/src/expression.c
+++ b/src/expression.c
@@ -1540,7 +1540,7 @@ const struct expr_ops *expr_ops(const struct expr *e)
return __expr_ops_by_type(e->etype);
}
-const struct expr_ops *expr_ops_by_type(uint32_t value)
+const struct expr_ops *expr_ops_by_type(enum expr_types value)
{
/* value might come from unreliable source, such as "udata"
* annotation of set keys. Avoid BUG() assertion.
diff --git a/src/rule.c b/src/rule.c
index c075d027..633a5a12 100644
--- a/src/rule.c
+++ b/src/rule.c
@@ -1912,7 +1912,7 @@ static const char * const obj_type_name_array[] = {
[NFT_OBJECT_CT_EXPECT] = "ct expectation",
};
-const char *obj_type_name(enum stmt_types type)
+const char *obj_type_name(unsigned int type)
{
assert(type <= NFT_OBJECT_MAX && obj_type_name_array[type]);
@@ -1930,7 +1930,7 @@ static uint32_t obj_type_cmd_array[NFT_OBJECT_MAX + 1] = {
[NFT_OBJECT_CT_EXPECT] = CMD_OBJ_CT_EXPECT,
};
-uint32_t obj_type_to_cmd(uint32_t type)
+enum cmd_obj obj_type_to_cmd(uint32_t type)
{
assert(type <= NFT_OBJECT_MAX && obj_type_cmd_array[type]);