]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
[NETFILTER]: nf_{conntrack,nat}_tftp: annotate TFTP helper with const
authorJan Engelhardt <jengelh@computergmbh.de>
Thu, 31 Jan 2008 12:50:51 +0000 (04:50 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 1 Feb 2008 03:28:08 +0000 (19:28 -0800)
Signed-off-by: Jan Engelhardt <jengelh@computergmbh.de>
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/netfilter/nf_nat_tftp.c
net/netfilter/nf_conntrack_tftp.c

index 1360a94766dd6321d7f1a07d719d88adce5a44f1..b096e81500aea2b86ffa6a2e0111d94307edf2a9 100644 (file)
@@ -24,7 +24,7 @@ static unsigned int help(struct sk_buff *skb,
                         enum ip_conntrack_info ctinfo,
                         struct nf_conntrack_expect *exp)
 {
-       struct nf_conn *ct = exp->master;
+       const struct nf_conn *ct = exp->master;
 
        exp->saved_proto.udp.port
                = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u.udp.port;
index 176f769d30723dff873b6d2ff22262b1fe3b4231..bd2e800f23cc8bc1c9fb8708c3b6e6426dfbaa8f 100644 (file)
@@ -39,7 +39,8 @@ static int tftp_help(struct sk_buff *skb,
                     struct nf_conn *ct,
                     enum ip_conntrack_info ctinfo)
 {
-       struct tftphdr _tftph, *tfh;
+       const struct tftphdr *tfh;
+       struct tftphdr _tftph;
        struct nf_conntrack_expect *exp;
        struct nf_conntrack_tuple *tuple;
        unsigned int ret = NF_ACCEPT;