r2752 - trunk/varnish-cache/bin/varnishd

tfheen at projects.linpro.no tfheen at projects.linpro.no
Sat Jun 21 08:42:34 CEST 2008


Author: tfheen
Date: 2008-06-21 08:42:34 +0200 (Sat, 21 Jun 2008)
New Revision: 2752

Modified:
   trunk/varnish-cache/bin/varnishd/cache_vrt_re.c
Log:
Use subtraction rather than digittoint since digittoint does not exist on non-BSDs

Modified: trunk/varnish-cache/bin/varnishd/cache_vrt_re.c
===================================================================
--- trunk/varnish-cache/bin/varnishd/cache_vrt_re.c	2008-06-20 21:33:21 UTC (rev 2751)
+++ trunk/varnish-cache/bin/varnishd/cache_vrt_re.c	2008-06-21 06:42:34 UTC (rev 2752)
@@ -140,7 +140,7 @@
 			}
 			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;




More information about the varnish-commit mailing list