]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
net: inet_diag_handler structs can be const
authorEric Dumazet <dada1@cosmosbay.com>
Wed, 19 Nov 2008 23:43:27 +0000 (15:43 -0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Nov 2008 23:43:27 +0000 (15:43 -0800)
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/dccp/diag.c
net/ipv4/tcp_diag.c

index d8a3509b26f68812c194f852eb5a0e017f0920e2..d1e100395efbadd110e7b17775ed01306f3c430c 100644 (file)
@@ -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,
index 838d491dfda7e09d8c9c313a25edfe50913047f7..fcbcd4ff6c5f250adc4c27397d1ef8992697a736 100644 (file)
@@ -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,