summaryrefslogtreecommitdiff
path: root/pcreposix.c
diff options
context:
space:
mode:
authornigel <nigel@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-02-24 21:40:18 +0000
committernigel <nigel@2f5784b3-3f2a-0410-8824-cb99058d5e15>2007-02-24 21:40:18 +0000
commitf08d5b6354f668c0047281d81eda8d0fd2a9e82d (patch)
tree55286e49e0fdc9b8ffa6fc2e769efe100defa3e4 /pcreposix.c
parent19ccd22bd088b5a640d244365ab9025509e678c0 (diff)
downloadpcre-f08d5b6354f668c0047281d81eda8d0fd2a9e82d.tar.gz
Load pcre-4.3 into code/trunk.
git-svn-id: svn://vcs.exim.org/pcre/code/trunk@69 2f5784b3-3f2a-0410-8824-cb99058d5e15
Diffstat (limited to 'pcreposix.c')
-rw-r--r--pcreposix.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pcreposix.c b/pcreposix.c
index ef7beef..49094f2 100644
--- a/pcreposix.c
+++ b/pcreposix.c
@@ -236,7 +236,7 @@ block of store on the stack, to reduce the use of malloc/free. The threshold is
in a macro that can be changed at configure time. */
int
-regexec(regex_t *preg, const char *string, size_t nmatch,
+regexec(const regex_t *preg, const char *string, size_t nmatch,
regmatch_t pmatch[], int eflags)
{
int rc;
@@ -248,7 +248,7 @@ BOOL allocated_ovector = FALSE;
if ((eflags & REG_NOTBOL) != 0) options |= PCRE_NOTBOL;
if ((eflags & REG_NOTEOL) != 0) options |= PCRE_NOTEOL;
-preg->re_erroffset = (size_t)(-1); /* Only has meaning after compile */
+((regex_t *)preg)->re_erroffset = (size_t)(-1); /* Only has meaning after compile */
if (nmatch > 0)
{