Skip to content

Commit

Permalink
net: inet_diag_handler structs can be const
Browse files Browse the repository at this point in the history
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Eric Dumazet authored and David S. Miller committed Nov 19, 2008
1 parent 14e943d commit a7a0d6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion net/dccp/diag.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ static void dccp_diag_get_info(struct sock *sk, struct inet_diag_msg *r,
dccp_get_info(sk, _info);
}

static struct inet_diag_handler dccp_diag_handler = {
static const struct inet_diag_handler dccp_diag_handler = {
.idiag_hashinfo = &dccp_hashinfo,
.idiag_get_info = dccp_diag_get_info,
.idiag_type = DCCPDIAG_GETSOCK,
Expand Down
2 changes: 1 addition & 1 deletion net/ipv4/tcp_diag.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ static void tcp_diag_get_info(struct sock *sk, struct inet_diag_msg *r,
tcp_get_info(sk, info);
}

static struct inet_diag_handler tcp_diag_handler = {
static const struct inet_diag_handler tcp_diag_handler = {
.idiag_hashinfo = &tcp_hashinfo,
.idiag_get_info = tcp_diag_get_info,
.idiag_type = TCPDIAG_GETSOCK,
Expand Down

0 comments on commit a7a0d6a

Please sign in to comment.