]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/ipv4/tunnel4.c
net: constify struct net_protocol
[net-next-2.6.git] / net / ipv4 / tunnel4.c
index cb1f0e83830b408871139ca9a809b5320ea809b7..3959e0ca456a09ce2457e120e2244358629ee428 100644 (file)
@@ -132,7 +132,7 @@ static void tunnel64_err(struct sk_buff *skb, u32 info)
 }
 #endif
 
-static struct net_protocol tunnel4_protocol = {
+static const struct net_protocol tunnel4_protocol = {
        .handler        =       tunnel4_rcv,
        .err_handler    =       tunnel4_err,
        .no_policy      =       1,
@@ -140,7 +140,7 @@ static struct net_protocol tunnel4_protocol = {
 };
 
 #if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
-static struct net_protocol tunnel64_protocol = {
+static const struct net_protocol tunnel64_protocol = {
        .handler        =       tunnel64_rcv,
        .err_handler    =       tunnel64_err,
        .no_policy      =       1,