From: Patrick McHardy Date: Tue, 1 Feb 2011 16:26:37 +0000 (+0100) Subject: netfilter: ctnetlink: fix ctnetlink_parse_tuple() warning X-Git-Tag: MMI-PSA29.97-13-9~20520^2~10^2~63 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a00f1f3686d6a062b5295c092a9dff059adbdbf5;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git 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 --- 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] = { 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;