* [PATCH] net: inet_diag_handler structs can be const
@ 2008-11-17 17:10 Eric Dumazet
2008-11-19 23:43 ` David Miller
0 siblings, 1 reply; 2+ messages in thread
From: Eric Dumazet @ 2008-11-17 17:10 UTC (permalink / raw)
To: David S. Miller; +Cc: Linux Netdev List
[-- Attachment #1: Type: text/plain, Size: 166 bytes --]
Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
---
net/dccp/diag.c | 2 +-
net/ipv4/tcp_diag.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
[-- Attachment #2: const_inet_diag_handler.patch --]
[-- Type: text/plain, Size: 958 bytes --]
diff --git a/net/dccp/diag.c b/net/dccp/diag.c
index d8a3509..d1e1003 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,
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,
diff --git a/net/ipv4/tcp_diag.c b/net/ipv4/tcp_diag.c
index 838d491..fcbcd4f 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,
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,
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] net: inet_diag_handler structs can be const
2008-11-17 17:10 [PATCH] net: inet_diag_handler structs can be const Eric Dumazet
@ 2008-11-19 23:43 ` David Miller
0 siblings, 0 replies; 2+ messages in thread
From: David Miller @ 2008-11-19 23:43 UTC (permalink / raw)
To: dada1; +Cc: netdev
From: Eric Dumazet <dada1@cosmosbay.com>
Date: Mon, 17 Nov 2008 18:10:18 +0100
> Signed-off-by: Eric Dumazet <dada1@cosmosbay.com>
Applied to net-next-2.6, thanks Eric.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-19 23:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-17 17:10 [PATCH] net: inet_diag_handler structs can be const Eric Dumazet
2008-11-19 23:43 ` David Miller
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).