From: tfheen Date: Sat, 21 Jun 2008 06:42:34 +0000 (+0000) Subject: Use subtraction rather than digittoint since digittoint does not exist on non-BSDs X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9579d9058b56f0e7fd8150e1ba345ba25396f08f;p=varnish 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 --- 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;