Skip to content

Commit

Permalink
netfilter: ctnetlink: fix ctnetlink_parse_tuple() warning
Browse files Browse the repository at this point in the history
net/netfilter/nf_conntrack_netlink.c: In function 'ctnetlink_parse_tuple':
net/netfilter/nf_conntrack_netlink.c:832:11: warning: comparison between 'enum ctattr_tuple' and 'enum ctattr_type'

Use ctattr_type for the 'type' parameter since that's the type of all attributes
passed to this function.

Signed-off-by: Patrick McHardy <kaber@trash.net>
  • Loading branch information
kangtastic committed Oct 18, 2011
1 parent b3446d6 commit 0d7dd49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/kernel/net/netfilter/nf_conntrack_netlink.c
Expand Up @@ -733,7 +733,7 @@ static const struct nla_policy tuple_nla_policy[CTA_TUPLE_MAX+1] = {
static int
ctnetlink_parse_tuple(const struct nlattr * const cda[],
struct nf_conntrack_tuple *tuple,
enum ctattr_tuple type, u_int8_t l3num)
enum ctattr_type type, u_int8_t l3num)
{
struct nlattr *tb[CTA_TUPLE_MAX+1];
int err;
Expand Down

0 comments on commit 0d7dd49

Please sign in to comment.