]> err.no Git - varnish/commitdiff
Use subtraction rather than digittoint since digittoint does not exist on non-BSDs
authortfheen <tfheen@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sat, 21 Jun 2008 06:42:34 +0000 (06:42 +0000)
committertfheen <tfheen@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Sat, 21 Jun 2008 06:42:34 +0000 (06:42 +0000)
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

index 2a8132ecb3a027d3e4c93be8a0caa9358aa6dc3a..38e4e167b9b99853b57621ebba0277dc6ab7b403 100644 (file)
@@ -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;