]> err.no Git - linux-2.6/commitdiff
[IPV4]: Make ip_tos2prio const.
authorPhilippe De Muyter <phdm@macqel.be>
Mon, 9 Jul 2007 22:32:57 +0000 (15:32 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Wed, 11 Jul 2007 05:19:04 +0000 (22:19 -0700)
Signed-off-by: Philippe De Muyter <phdm@macqel.be>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/route.h
net/ipv4/route.c

index 188b8936bb27a2bed12da54bf591f0256195a248..f7ce6259f86fb50754df9e1ee27744744ffad1f8 100644 (file)
@@ -135,7 +135,7 @@ static inline void ip_rt_put(struct rtable * rt)
 
 #define IPTOS_RT_MASK  (IPTOS_TOS_MASK & ~3)
 
-extern __u8 ip_tos2prio[16];
+extern const __u8 ip_tos2prio[16];
 
 static inline char rt_tos2priority(u8 tos)
 {
index 85285021518bade3fcb07221345a6fbc5d20aa06..88fa648d7ba33cf23757d1db1544c2954a230706 100644 (file)
@@ -167,7 +167,7 @@ static struct dst_ops ipv4_dst_ops = {
 
 #define ECN_OR_COST(class)     TC_PRIO_##class
 
-__u8 ip_tos2prio[16] = {
+const __u8 ip_tos2prio[16] = {
        TC_PRIO_BESTEFFORT,
        ECN_OR_COST(FILLER),
        TC_PRIO_BESTEFFORT,