]> err.no Git - linux-2.6/commitdiff
ipvs: Mark net_vs_ctl_path const
authorSven Wegener <sven.wegener@stealer.net>
Sun, 10 Aug 2008 18:24:40 +0000 (18:24 +0000)
committerSven Wegener <sven.wegener@stealer.net>
Mon, 11 Aug 2008 09:46:27 +0000 (11:46 +0200)
Signed-off-by: Sven Wegener <sven.wegener@stealer.net>
Acked-by: Simon Horman <horms@verge.net.au>
include/net/ip_vs.h
net/ipv4/ipvs/ip_vs_ctl.c

index e980416bff811683097b888d89720aa4e96fdcd8..c8ee9b89b023d37bc538cc351128e47c9cc6b74e 100644 (file)
@@ -620,7 +620,7 @@ extern int sysctl_ip_vs_expire_quiescent_template;
 extern int sysctl_ip_vs_sync_threshold[2];
 extern int sysctl_ip_vs_nat_icmp_send;
 extern struct ip_vs_stats ip_vs_stats;
-extern struct ctl_path net_vs_ctl_path[];
+extern const struct ctl_path net_vs_ctl_path[];
 
 extern struct ip_vs_service *
 ip_vs_service_get(__u32 fwmark, __u16 protocol, __be32 vaddr, __be16 vport);
index df13333813adb91eca0f2f00c189d767e9898197..999d884e8862bae0b3a4e6a4450799bf770c613a 100644 (file)
@@ -1589,7 +1589,7 @@ static struct ctl_table vs_vars[] = {
        { .ctl_name = 0 }
 };
 
-struct ctl_path net_vs_ctl_path[] = {
+const struct ctl_path net_vs_ctl_path[] = {
        { .procname = "net", .ctl_name = CTL_NET, },
        { .procname = "ipv4", .ctl_name = NET_IPV4, },
        { .procname = "vs", },