Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[NETFILTER]: nf_{conntrack,nat}_tftp: annotate TFTP helper with const

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>

authored by

Jan Engelhardt and committed by
David S. Miller
de24b4eb 13f7d63c

+3 -2
+1 -1
net/ipv4/netfilter/nf_nat_tftp.c
··· 24 24 enum ip_conntrack_info ctinfo, 25 25 struct nf_conntrack_expect *exp) 26 26 { 27 - struct nf_conn *ct = exp->master; 27 + const struct nf_conn *ct = exp->master; 28 28 29 29 exp->saved_proto.udp.port 30 30 = ct->tuplehash[IP_CT_DIR_ORIGINAL].tuple.src.u.udp.port;
+2 -1
net/netfilter/nf_conntrack_tftp.c
··· 39 39 struct nf_conn *ct, 40 40 enum ip_conntrack_info ctinfo) 41 41 { 42 - struct tftphdr _tftph, *tfh; 42 + const struct tftphdr *tfh; 43 + struct tftphdr _tftph; 43 44 struct nf_conntrack_expect *exp; 44 45 struct nf_conntrack_tuple *tuple; 45 46 unsigned int ret = NF_ACCEPT;