[master] 48af2f5 Rename VRT_error() to VRT_synth() for consistency

Federico G. Schwindt fgsch at lodoss.net
Wed Jun 24 17:09:49 CEST 2015


commit 48af2f5a7df8e8a4a3269d37159a0919d2c6a635
Author: Federico G. Schwindt <fgsch at lodoss.net>
Date:   Wed Jun 24 14:27:57 2015 +0100

    Rename VRT_error() to VRT_synth() for consistency

diff --git a/bin/varnishd/cache/cache_vrt.c b/bin/varnishd/cache/cache_vrt.c
index 3c408e3..814d4af 100644
--- a/bin/varnishd/cache/cache_vrt.c
+++ b/bin/varnishd/cache/cache_vrt.c
@@ -48,7 +48,7 @@ const void * const vrt_magic_string_unset = &vrt_magic_string_unset;
 /*--------------------------------------------------------------------*/
 
 void
-VRT_error(VRT_CTX, unsigned code, const char *reason)
+VRT_synth(VRT_CTX, unsigned code, const char *reason)
 {
 
 	CHECK_OBJ_NOTNULL(ctx, VRT_CTX_MAGIC);
diff --git a/include/vrt.h b/include/vrt.h
index 63d1a85..98168a3 100644
--- a/include/vrt.h
+++ b/include/vrt.h
@@ -253,7 +253,7 @@ void VRT_purge(VRT_CTX, double ttl, double grace, double keep);
 
 void VRT_count(VRT_CTX, unsigned);
 int VRT_rewrite(const char *, const char *);
-void VRT_error(VRT_CTX, unsigned, const char *);
+void VRT_synth(VRT_CTX, unsigned, const char *);
 int VRT_switch_config(const char *);
 
 struct http *VRT_selecthttp(VRT_CTX, enum gethdr_e);
diff --git a/lib/libvcc/vcc_action.c b/lib/libvcc/vcc_action.c
index 1ec9d72..ea3e679 100644
--- a/lib/libvcc/vcc_action.c
+++ b/lib/libvcc/vcc_action.c
@@ -324,7 +324,7 @@ parse_return(struct vcc *tl)
 		}
 		ExpectErr(tl, '(');
 		vcc_NextToken(tl);
-		Fb(tl, 1, "VRT_error(ctx,\n");
+		Fb(tl, 1, "VRT_synth(ctx,\n");
 		tl->indent += INDENT;
 		vcc_Expr(tl, INT);
 		ERRCHK(tl);



More information about the varnish-commit mailing list