]> err.no Git - varnish/commitdiff
Constify a couple of strings.
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 29 Sep 2008 07:32:26 +0000 (07:32 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Mon, 29 Sep 2008 07:32:26 +0000 (07:32 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3234 d4fa192b-c00b-0410-8231-f00ffab90ce4

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

index 3a1aa86b7ece27a493d2c5cdcc5bac6a589e8c49..2ea6550c4cc68c59bd99f9e8f1ae7d0d359b77f7 100644 (file)
@@ -48,8 +48,8 @@ struct sockaddr;
 extern void *vrt_magic_string_end;
 
 struct vrt_backend_probe {
-       char            *url;
-       char            *request;
+       const char      *url;
+       const char      *request;
        double          timeout;
        double          interval;
        unsigned        window;
index 3dcf753c8ac48f243f13be6ca4dc1c4235ad4691..b9db2b95793e51b3f0b03740d980abfddd81f971 100644 (file)
@@ -328,8 +328,8 @@ vcl_output_lang_h(struct vsb *sb)
        vsb_cat(sb, "extern void *vrt_magic_string_end;\n");
        vsb_cat(sb, "\n");
        vsb_cat(sb, "struct vrt_backend_probe {\n");
-       vsb_cat(sb, "   char            *url;\n");
-       vsb_cat(sb, "   char            *request;\n");
+       vsb_cat(sb, "   const char      *url;\n");
+       vsb_cat(sb, "   const char      *request;\n");
        vsb_cat(sb, "   double          timeout;\n");
        vsb_cat(sb, "   double          interval;\n");
        vsb_cat(sb, "   unsigned        window;\n");