]> asedeno.scripts.mit.edu Git - linux.git/commit
netfilter: constify nf_conntrack_l3/4proto parameters
authorJulia Lawall <julia.lawall@lip6.fr>
Tue, 1 Aug 2017 10:25:01 +0000 (12:25 +0200)
committerPablo Neira Ayuso <pablo@netfilter.org>
Wed, 2 Aug 2017 12:25:57 +0000 (14:25 +0200)
commit2a04aabf5c96c9e25df488949b21223bcc623815
tree79e4c908818fac3f97e2ea6b83dfef64e62fa55a
parent5b9ccdcb98429b7e5c814772e3d9448c76441d87
netfilter: constify nf_conntrack_l3/4proto parameters

When a nf_conntrack_l3/4proto parameter is not on the left hand side
of an assignment, its address is not taken, and it is not passed to a
function that may modify its fields, then it can be declared as const.

This change is useful from a documentation point of view, and can
possibly facilitate making some nf_conntrack_l3/4proto structures const
subsequently.

Done with the help of Coccinelle.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
include/net/netfilter/nf_conntrack_l4proto.h
include/net/netfilter/nf_conntrack_timeout.h
net/netfilter/nf_conntrack_core.c
net/netfilter/nf_conntrack_netlink.c
net/netfilter/nf_conntrack_proto.c
net/netfilter/nfnetlink_cttimeout.c