[master] ecacfef Fix type for grabbing size of a regex

Tollef Fog Heen tfheen at varnish-cache.org
Thu Jun 16 13:30:44 CEST 2011

commit ecacfefabffc7364e59ae5082c8d261fda5817fb
Author: Tollef Fog Heen <tfheen at varnish-software.com>
Date:   Thu Jun 16 13:26:56 2011 +0200

    Fix type for grabbing size of a regex
    The size of a regex is a size_t.  Spotted by gcc 4.6

diff --git a/bin/varnishd/cache_ban.c b/bin/varnishd/cache_ban.c
index d62cac6..bbfe57f 100644
--- a/bin/varnishd/cache_ban.c
+++ b/bin/varnishd/cache_ban.c
@@ -292,7 +292,8 @@ static int
 ban_parse_regexp(struct cli *cli, const struct ban *b, const char *a3)
 	const char *error;
-	int erroroffset, rc, sz;
+	int erroroffset, rc;
+	size_t sz;
 	pcre *re;
 	re = pcre_compile(a3, 0, &error, &erroroffset, NULL);

More information about the varnish-commit mailing list