diff options
author | dgp <dgp@users.sourceforge.net> | 2015-09-21 19:25:20 (GMT) |
---|---|---|
committer | dgp <dgp@users.sourceforge.net> | 2015-09-21 19:25:20 (GMT) |
commit | 256865fe128c764644470f0250d960bdf1d51925 (patch) | |
tree | c218bc169f19075cbc1a3e813cccac59e791c5c5 /generic/regerror.c | |
parent | 4669ea6d0c14cef0c13cf12ba3e54e97e197a5d6 (diff) | |
download | tcl-256865fe128c764644470f0250d960bdf1d51925.zip tcl-256865fe128c764644470f0250d960bdf1d51925.tar.gz tcl-256865fe128c764644470f0250d960bdf1d51925.tar.bz2 |
[187d7f499b] Sync the regexp engine to the Postgres version.
Diffstat (limited to 'generic/regerror.c')
-rw-r--r-- | generic/regerror.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/generic/regerror.c b/generic/regerror.c index a1a0163..49d93ed 100644 --- a/generic/regerror.c +++ b/generic/regerror.c @@ -41,7 +41,7 @@ static const char unk[] = "*** unknown regex error code 0x%x ***"; * Struct to map among codes, code names, and explanations. */ -static struct rerr { +static const struct rerr { int code; const char *name; const char *explain; @@ -62,7 +62,7 @@ regerror( char *errbuf, /* Result buffer (unless errbuf_size==0) */ size_t errbuf_size) /* Available space in errbuf, can be 0 */ { - struct rerr *r; + const struct rerr *r; const char *msg; char convbuf[sizeof(unk)+50]; /* 50 = plenty for int */ size_t len; |