From e40e08555bf4630d118abc5b0771faa3bab1e43c Mon Sep 17 00:00:00 2001 From: phk Date: Fri, 15 Sep 2006 10:01:45 +0000 Subject: [PATCH] Improve portability: Since all log strings are NUL terminated we do not need to use REG_STARTEND any more. git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@989 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- varnish-cache/lib/libvarnishapi/shmlog.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/varnish-cache/lib/libvarnishapi/shmlog.c b/varnish-cache/lib/libvarnishapi/shmlog.c index ad0d8b43..aef5ad3f 100644 --- a/varnish-cache/lib/libvarnishapi/shmlog.c +++ b/varnish-cache/lib/libvarnishapi/shmlog.c @@ -243,14 +243,14 @@ VSL_NextLog(struct VSL_data *vd, unsigned char **pp) 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; } -- 2.39.5