[INET]: congestion and af_ops can be const
authorStephen Hemminger <shemminger@osdl.org>
Mon, 9 Jan 2006 23:56:09 +0000 (15:56 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Tue, 10 Jan 2006 20:54:26 +0000 (12:54 -0800)
The congestion ops and af_ops in the inet_connection_sock
can be const.

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/inet_connection_sock.h

index 50234fa56a6843a16f803e2d22616e4489d8e7b6..fa587c94e9d0483fc774356b933235cddafcb44c 100644 (file)
@@ -83,8 +83,8 @@ struct inet_connection_sock {
        struct timer_list         icsk_delack_timer;
        __u32                     icsk_rto;
        __u32                     icsk_pmtu_cookie;
-       struct tcp_congestion_ops *icsk_ca_ops;
-       struct inet_connection_sock_af_ops *icsk_af_ops;
+       const struct tcp_congestion_ops *icsk_ca_ops;
+       const struct inet_connection_sock_af_ops *icsk_af_ops;
        unsigned int              (*icsk_sync_mss)(struct sock *sk, u32 pmtu);
        __u8                      icsk_ca_state;
        __u8                      icsk_retransmits;