diff options
author | jan.nijtmans <nijtmans@users.sourceforge.net> | 2015-09-23 12:19:12 (GMT) |
---|---|---|
committer | jan.nijtmans <nijtmans@users.sourceforge.net> | 2015-09-23 12:19:12 (GMT) |
commit | 93802f62b1b7db705e29fe8dcd3abe5fedd6b8d9 (patch) | |
tree | 0f51141ce77037f18b3777c23c9ab7666b590eea /generic/regerror.c | |
parent | 00e36faa85d26704fb289ee399cad3c810c0eaa2 (diff) | |
parent | 401ea793a5691a5dc91795371922de138ea7f68c (diff) | |
download | tcl-93802f62b1b7db705e29fe8dcd3abe5fedd6b8d9.zip tcl-93802f62b1b7db705e29fe8dcd3abe5fedd6b8d9.tar.gz tcl-93802f62b1b7db705e29fe8dcd3abe5fedd6b8d9.tar.bz2 |
Merge trunk
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; |