]> err.no Git - varnish/commitdiff
Constify three strings in compiled VCL data structure vrt_backend
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 26 Sep 2008 13:07:51 +0000 (13:07 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 26 Sep 2008 13:07:51 +0000 (13:07 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3229 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/include/vrt.h
varnish-cache/lib/libvcl/vcc_fixed_token.c

index 121d9bf83a274cc503ce0faf4abba20a3a47fd70..3a1aa86b7ece27a493d2c5cdcc5bac6a589e8c49 100644 (file)
@@ -60,10 +60,10 @@ struct vrt_backend_probe {
  * A backend is a host+port somewhere on the network
  */
 struct vrt_backend {
-       char                            *vcl_name;
-       char                            *ident;
+       const char                      *vcl_name;
+       const char                      *ident;
 
-       char                            *hosthdr;
+       const char                      *hosthdr;
 
        const unsigned char             *ipv4_sockaddr;
        const unsigned char             *ipv6_sockaddr;
index 4de263ae2213749ffa3f3244c0bcef25dcb4230b..3dcf753c8ac48f243f13be6ca4dc1c4235ad4691 100644 (file)
@@ -340,10 +340,10 @@ vcl_output_lang_h(struct vsb *sb)
        vsb_cat(sb, " * A backend is a host+port somewhere on the network\n");
        vsb_cat(sb, " */\n");
        vsb_cat(sb, "struct vrt_backend {\n");
-       vsb_cat(sb, "   char                            *vcl_name;\n");
-       vsb_cat(sb, "   char                            *ident;\n");
+       vsb_cat(sb, "   const char                      *vcl_name;\n");
+       vsb_cat(sb, "   const char                      *ident;\n");
        vsb_cat(sb, "\n");
-       vsb_cat(sb, "   char                            *hosthdr;\n");
+       vsb_cat(sb, "   const char                      *hosthdr;\n");
        vsb_cat(sb, "\n");
        vsb_cat(sb, "   const unsigned char             *ipv4_sockaddr;\n");
        vsb_cat(sb, "   const unsigned char             *ipv6_sockaddr;\n");