summaryrefslogtreecommitdiffstats
path: root/generic/regerror.c
diff options
context:
space:
mode:
authordgp <dgp@users.sourceforge.net>2015-09-21 19:25:20 (GMT)
committerdgp <dgp@users.sourceforge.net>2015-09-21 19:25:20 (GMT)
commit066e9abdc308995186dbc4d9bbc2fedc07674296 (patch)
treec218bc169f19075cbc1a3e813cccac59e791c5c5 /generic/regerror.c
parentd9db840088cdabd2863a7bd92ca051cda3f56c46 (diff)
downloadtcl-066e9abdc308995186dbc4d9bbc2fedc07674296.zip
tcl-066e9abdc308995186dbc4d9bbc2fedc07674296.tar.gz
tcl-066e9abdc308995186dbc4d9bbc2fedc07674296.tar.bz2
[187d7f499b] Sync the regexp engine to the Postgres version.
Diffstat (limited to 'generic/regerror.c')
-rw-r--r--generic/regerror.c4
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;