diff options
Diffstat (limited to 'net')
| -rw-r--r-- | net/dccp/diag.c | 2 | ||||
| -rw-r--r-- | net/ipv4/tcp_diag.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/dccp/diag.c b/net/dccp/diag.c index d8a3509b26f6..d1e100395efb 100644 --- a/net/dccp/diag.c +++ b/net/dccp/diag.c | |||
| @@ -45,7 +45,7 @@ static void dccp_diag_get_info(struct sock *sk, struct inet_diag_msg *r, | |||
| 45 | dccp_get_info(sk, _info); | 45 | dccp_get_info(sk, _info); |
| 46 | } | 46 | } |
| 47 | 47 | ||
| 48 | static struct inet_diag_handler dccp_diag_handler = { | 48 | static const struct inet_diag_handler dccp_diag_handler = { |
| 49 | .idiag_hashinfo = &dccp_hashinfo, | 49 | .idiag_hashinfo = &dccp_hashinfo, |
| 50 | .idiag_get_info = dccp_diag_get_info, | 50 | .idiag_get_info = dccp_diag_get_info, |
| 51 | .idiag_type = DCCPDIAG_GETSOCK, | 51 | .idiag_type = DCCPDIAG_GETSOCK, |
diff --git a/net/ipv4/tcp_diag.c b/net/ipv4/tcp_diag.c index 838d491dfda7..fcbcd4ff6c5f 100644 --- a/net/ipv4/tcp_diag.c +++ b/net/ipv4/tcp_diag.c | |||
| @@ -34,7 +34,7 @@ static void tcp_diag_get_info(struct sock *sk, struct inet_diag_msg *r, | |||
| 34 | tcp_get_info(sk, info); | 34 | tcp_get_info(sk, info); |
| 35 | } | 35 | } |
| 36 | 36 | ||
| 37 | static struct inet_diag_handler tcp_diag_handler = { | 37 | static const struct inet_diag_handler tcp_diag_handler = { |
| 38 | .idiag_hashinfo = &tcp_hashinfo, | 38 | .idiag_hashinfo = &tcp_hashinfo, |
| 39 | .idiag_get_info = tcp_diag_get_info, | 39 | .idiag_get_info = tcp_diag_get_info, |
| 40 | .idiag_type = TCPDIAG_GETSOCK, | 40 | .idiag_type = TCPDIAG_GETSOCK, |
