r3234 - in trunk/varnish-cache: include lib/libvcl
phk at projects.linpro.no
phk at projects.linpro.no
Mon Sep 29 09:32:26 CEST 2008
Author: phk
Date: 2008-09-29 09:32:26 +0200 (Mon, 29 Sep 2008)
New Revision: 3234
Modified:
trunk/varnish-cache/include/vrt.h
trunk/varnish-cache/lib/libvcl/vcc_fixed_token.c
Log:
Constify a couple of strings.
Modified: trunk/varnish-cache/include/vrt.h
===================================================================
--- trunk/varnish-cache/include/vrt.h 2008-09-28 09:46:28 UTC (rev 3233)
+++ trunk/varnish-cache/include/vrt.h 2008-09-29 07:32:26 UTC (rev 3234)
@@ -48,8 +48,8 @@
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;
Modified: trunk/varnish-cache/lib/libvcl/vcc_fixed_token.c
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_fixed_token.c 2008-09-28 09:46:28 UTC (rev 3233)
+++ trunk/varnish-cache/lib/libvcl/vcc_fixed_token.c 2008-09-29 07:32:26 UTC (rev 3234)
@@ -328,8 +328,8 @@
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");
More information about the varnish-commit
mailing list