Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a7a0d6a8 authored by Eric Dumazet's avatar Eric Dumazet Committed by David S. Miller
Browse files

net: inet_diag_handler structs can be const

parent 14e943db
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,
+1 −1
Original line number Diff line number Diff line
@@ -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,