projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
eb73dde
)
ipv4: make net_protocol const
author
Bhumika Goyal
<
[email protected]
>
Fri, 25 Aug 2017 14:21:44 +0000
(19:51 +0530)
committer
David S. Miller
<
[email protected]
>
Mon, 28 Aug 2017 18:30:02 +0000
(11:30 -0700)
Make these const as they are only passed to a const argument of the
function inet_add_protocol.
Signed-off-by: Bhumika Goyal <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/ipv4/af_inet.c
patch
|
blob
|
history
diff --git
a/net/ipv4/af_inet.c
b/net/ipv4/af_inet.c
index d678820e430686ef96e40cb1a05df9cf2773856f..19aee073ba29920a0c8b424389f8a2deb5807678 100644
(file)
--- 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,