diff options
author | Patrick McHardy <kaber@trash.net> | 2011-02-01 11:26:37 -0500 |
---|---|---|
committer | Patrick McHardy <kaber@trash.net> | 2011-02-01 11:26:37 -0500 |
commit | a00f1f3686d6a062b5295c092a9dff059adbdbf5 (patch) | |
tree | 7aefdf14d12a5ff377fe747d3d8ce4f34f77ff7a | |
parent | 582e1fc85ca3727abd4e99109a267c514ea5c260 (diff) |
netfilter: ctnetlink: fix ctnetlink_parse_tuple() warning
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>
-rw-r--r-- | net/netfilter/nf_conntrack_netlink.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/netfilter/nf_conntrack_netlink.c b/net/netfilter/nf_conntrack_netlink.c index 61c73945bb94..cb1a8190ba29 100644 --- a/net/netfilter/nf_conntrack_netlink.c +++ b/net/netfilter/nf_conntrack_netlink.c | |||
@@ -803,7 +803,7 @@ static const struct nla_policy tuple_nla_policy[CTA_TUPLE_MAX+1] = { | |||
803 | static int | 803 | static int |
804 | ctnetlink_parse_tuple(const struct nlattr * const cda[], | 804 | ctnetlink_parse_tuple(const struct nlattr * const cda[], |
805 | struct nf_conntrack_tuple *tuple, | 805 | struct nf_conntrack_tuple *tuple, |
806 | enum ctattr_tuple type, u_int8_t l3num) | 806 | enum ctattr_type type, u_int8_t l3num) |
807 | { | 807 | { |
808 | struct nlattr *tb[CTA_TUPLE_MAX+1]; | 808 | struct nlattr *tb[CTA_TUPLE_MAX+1]; |
809 | int err; | 809 | int err; |