]> err.no Git - varnish/commitdiff
Improve portability: Since all log strings are NUL terminated we do not
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 15 Sep 2006 10:01:45 +0000 (10:01 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 15 Sep 2006 10:01:45 +0000 (10:01 +0000)
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

index ad0d8b43b02e0616ac89deff2dd9cdd011104513..aef5ad3fd10e2ae6c5709f278939ba6ead622b0e 100644 (file)
@@ -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;
                }