summaryrefslogtreecommitdiff
path: root/net/ipv4
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-08-25 17:21:44 +0300
committerDavid S. Miller <davem@davemloft.net>2017-08-28 21:30:02 +0300
commitaa8db499ea67cff1f5f049033810ffede2fe5ae4 (patch)
tree8319c5112c944926ae81cf5adc04d3a1381311cb /net/ipv4
parenteb73ddebe992200586bcead3e2ff2889ef8d2575 (diff)
downloadlinux-aa8db499ea67cff1f5f049033810ffede2fe5ae4.tar.xz
ipv4: make net_protocol const
Make these const as they are only passed to a const argument of the function inet_add_protocol. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4')
-rw-r--r--net/ipv4/af_inet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/af_inet.c b/net/ipv4/af_inet.c
index d678820e4306..19aee073ba29 100644
--- a/net/ipv4/af_inet.c
+++ b/net/ipv4/af_inet.c
@@ -1596,7 +1596,7 @@ static const struct net_protocol igmp_protocol = {
};
#endif
-static struct net_protocol tcp_protocol = {
+static const struct net_protocol tcp_protocol = {
.early_demux = tcp_v4_early_demux,
.early_demux_handler = tcp_v4_early_demux,
.handler = tcp_v4_rcv,
@@ -1606,7 +1606,7 @@ static struct net_protocol tcp_protocol = {
.icmp_strict_tag_validation = 1,
};
-static struct net_protocol udp_protocol = {
+static const struct net_protocol udp_protocol = {
.early_demux = udp_v4_early_demux,
.early_demux_handler = udp_v4_early_demux,
.handler = udp_rcv,