diff options
author | monty@hundin.mysql.fi <> | 2001-12-02 14:34:01 +0200 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2001-12-02 14:34:01 +0200 |
commit | 1d26537da53fee228b2f9d974d4806a06b76e33e (patch) | |
tree | 8e30a64d5c7aaa0ba8554c4c316cc9b76a6724ca /regex/regerror.c | |
parent | 8a8617075a9e6ae3537bb8d81c8f4ab62e77fa44 (diff) | |
download | mariadb-git-1d26537da53fee228b2f9d974d4806a06b76e33e.tar.gz |
Query cache.
Remove some warnings
Diffstat (limited to 'regex/regerror.c')
-rw-r--r-- | regex/regerror.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/regex/regerror.c b/regex/regerror.c index 4a28f6e9d24..0a7b7c8da2c 100644 --- a/regex/regerror.c +++ b/regex/regerror.c @@ -28,8 +28,8 @@ */ static struct rerr { int code; - char *name; - char *explain; + const char *name; + const char *explain; } rerrs[] = { {REG_NOMATCH, "REG_NOMATCH", "regexec() failed to match"}, {REG_BADPAT, "REG_BADPAT", "invalid regular expression"}, @@ -83,7 +83,7 @@ size_t errbuf_size; assert(strlen(convbuf) < sizeof(convbuf)); s = convbuf; } else - s = r->explain; + s = (char*) r->explain; } len = strlen(s) + 1; @@ -113,7 +113,7 @@ char *localbuf; if (strcmp(r->name, preg->re_endp) == 0) break; if (r->code == 0) - return("0"); + return((char*) "0"); sprintf(localbuf, "%d", r->code); return(localbuf); |