From: phk Date: Mon, 29 Sep 2008 07:32:26 +0000 (+0000) Subject: Constify a couple of strings. X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=248113fc77751c951021f9a069bb2c7cacdb8a77;p=varnish Constify a couple of strings. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@3234 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/include/vrt.h b/varnish-cache/include/vrt.h index 3a1aa86b..2ea6550c 100644 --- a/varnish-cache/include/vrt.h +++ b/varnish-cache/include/vrt.h @@ -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; diff --git a/varnish-cache/lib/libvcl/vcc_fixed_token.c b/varnish-cache/lib/libvcl/vcc_fixed_token.c index 3dcf753c..b9db2b95 100644 --- a/varnish-cache/lib/libvcl/vcc_fixed_token.c +++ b/varnish-cache/lib/libvcl/vcc_fixed_token.c @@ -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");