From f92f2cfac11e8c98df56a9e8a3249d1556aa1940 Mon Sep 17 00:00:00 2001 From: phk Date: Wed, 9 May 2007 13:55:39 +0000 Subject: [PATCH] Make req.hash have the right internal type: char * git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@1397 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/include/vrt_obj.h | 4 ++-- varnish-cache/lib/libvcl/vcc_gen_obj.tcl | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/varnish-cache/include/vrt_obj.h b/varnish-cache/include/vrt_obj.h index f11e7832..07fabade 100644 --- a/varnish-cache/include/vrt_obj.h +++ b/varnish-cache/include/vrt_obj.h @@ -26,8 +26,8 @@ const char * VRT_r_req_proto(struct sess *); 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 *); diff --git a/varnish-cache/lib/libvcl/vcc_gen_obj.tcl b/varnish-cache/lib/libvcl/vcc_gen_obj.tcl index 4a84a86b..a8a7c777 100755 --- a/varnish-cache/lib/libvcl/vcc_gen_obj.tcl +++ b/varnish-cache/lib/libvcl/vcc_gen_obj.tcl @@ -63,7 +63,7 @@ set tt(TIME) "double" 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. -- 2.39.5