[prev in list] [next in list] [prev in thread] [next in thread] 

List:       varnish-commit
Subject:    r3234 - in trunk/varnish-cache: include lib/libvcl
From:       phk () projects ! linpro ! no (phk at projects ! linpro ! no)
Date:       2008-09-29 7:32:26
Message-ID: 20080929073226.CCD271EC9A4 () projects ! linpro ! no
[Download RAW message or body]

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");



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic