Mailing List Archive

r1397 - in trunk/varnish-cache: include lib/libvcl
Author: phk
Date: 2007-05-09 15:55:39 +0200 (Wed, 09 May 2007)
New Revision: 1397

Modified:
trunk/varnish-cache/include/vrt_obj.h
trunk/varnish-cache/lib/libvcl/vcc_gen_obj.tcl
Log:
Make req.hash have the right internal type: char *


Modified: trunk/varnish-cache/include/vrt_obj.h
===================================================================
--- trunk/varnish-cache/include/vrt_obj.h 2007-05-09 12:08:41 UTC (rev 1396)
+++ trunk/varnish-cache/include/vrt_obj.h 2007-05-09 13:55:39 UTC (rev 1397)
@@ -26,8 +26,8 @@
void VRT_l_req_proto(struct sess *, const char *);
struct backend * VRT_r_req_backend(struct sess *);
void VRT_l_req_backend(struct sess *, struct backend *);
-int VRT_r_req_hash(struct sess *);
-void VRT_l_req_hash(struct sess *, int);
+const char * VRT_r_req_hash(struct sess *);
+void VRT_l_req_hash(struct sess *, const char *);
double VRT_r_obj_valid(struct sess *);
void VRT_l_obj_valid(struct sess *, double);
double VRT_r_obj_cacheable(struct sess *);

Modified: trunk/varnish-cache/lib/libvcl/vcc_gen_obj.tcl
===================================================================
--- trunk/varnish-cache/lib/libvcl/vcc_gen_obj.tcl 2007-05-09 12:08:41 UTC (rev 1396)
+++ trunk/varnish-cache/lib/libvcl/vcc_gen_obj.tcl 2007-05-09 13:55:39 UTC (rev 1397)
@@ -63,7 +63,7 @@
set tt(HEADER) "const char *"
set tt(HOSTNAME) "const char *"
set tt(PORTNAME) "const char *"
-set tt(HASH) "int"
+set tt(HASH) "const char *"

#----------------------------------------------------------------------
# Boilerplate warning for all generated files.