From 9579d9058b56f0e7fd8150e1ba345ba25396f08f Mon Sep 17 00:00:00 2001 From: tfheen Date: Sat, 21 Jun 2008 06:42:34 +0000 Subject: [PATCH] Use subtraction rather than digittoint since digittoint does not exist on non-BSDs git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@2752 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/bin/varnishd/cache_vrt_re.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/varnish-cache/bin/varnishd/cache_vrt_re.c b/varnish-cache/bin/varnishd/cache_vrt_re.c index 2a8132ec..38e4e167 100644 --- a/varnish-cache/bin/varnishd/cache_vrt_re.c +++ b/varnish-cache/bin/varnishd/cache_vrt_re.c @@ -140,7 +140,7 @@ VRT_regsub(const struct sess *sp, int all, const char *str, void *re, const char } s++; if (isdigit(*s)) { - x = digittoint(*s); + x = *s - '0'; l = pm[x].rm_eo - pm[x].rm_so; Tadd(&res, str + pm[x].rm_so, l); continue; -- 2.39.5