r989 - trunk/varnish-cache/lib/libvarnishapi

phk at projects.linpro.no phk at projects.linpro.no
Fri Sep 15 12:01:45 CEST 2006


Author: phk
Date: 2006-09-15 12:01:45 +0200 (Fri, 15 Sep 2006)
New Revision: 989

Modified:
   trunk/varnish-cache/lib/libvarnishapi/shmlog.c
Log:
Improve portability: Since all log strings are NUL terminated we do not
need to use REG_STARTEND any more.


Modified: trunk/varnish-cache/lib/libvarnishapi/shmlog.c
===================================================================
--- trunk/varnish-cache/lib/libvarnishapi/shmlog.c	2006-09-15 09:54:52 UTC (rev 988)
+++ trunk/varnish-cache/lib/libvarnishapi/shmlog.c	2006-09-15 10:01:45 UTC (rev 989)
@@ -243,14 +243,14 @@
 		if (vd->regincl != NULL) {
 			rm.rm_so = 0;
 			rm.rm_eo = p[1];
-			i = regexec(vd->regincl, p + 4, 1, &rm, REG_STARTEND);
+			i = regexec(vd->regincl, p + 4, 1, &rm, 0);
 			if (i == REG_NOMATCH)
 				continue;
 		}
 		if (vd->regexcl != NULL) {
 			rm.rm_so = 0;
 			rm.rm_eo = p[1];
-			i = regexec(vd->regexcl, p + 4, 1, &rm, REG_STARTEND);
+			i = regexec(vd->regexcl, p + 4, 1, &rm, 0);
 			if (i != REG_NOMATCH)
 				continue;
 		}




More information about the varnish-commit mailing list