summaryrefslogtreecommitdiff
path: root/regex
diff options
context:
space:
mode:
authorunknown <bar@bar.mysql.r18.ru>2003-01-29 17:31:20 +0400
committerunknown <bar@bar.mysql.r18.ru>2003-01-29 17:31:20 +0400
commit307ed01440291b47e938073666f5e77c62eefb8c (patch)
tree264982c7494f97fc034269d9b20c340299092a4b /regex
parent6a188877d440749e51aafdc98e4e656ae166d9ba (diff)
downloadmariadb-git-307ed01440291b47e938073666f5e77c62eefb8c.tar.gz
Move latin1 into a separarte file
Diffstat (limited to 'regex')
-rw-r--r--regex/main.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/regex/main.c b/regex/main.c
index 2597fc58d40..f43a112a661 100644
--- a/regex/main.c
+++ b/regex/main.c
@@ -74,7 +74,7 @@ char *argv[];
exit(status);
}
- err = regcomp(&re, argv[optind++], copts, my_charset_latin1);
+ err = regcomp(&re, argv[optind++], copts, &my_charset_latin1);
if (err) {
len = regerror(err, &re, erbuf, sizeof(erbuf));
fprintf(stderr, "error %s, %d/%d `%s'\n",
@@ -226,7 +226,7 @@ int opts; /* may not match f1 */
strcpy(f0copy, f0);
re.re_endp = (opts&REG_PEND) ? f0copy + strlen(f0copy) : NULL;
fixstr(f0copy);
- err = regcomp(&re, f0copy, opts, my_charset_latin1);
+ err = regcomp(&re, f0copy, opts, &my_charset_latin1);
if (err != 0 && (!opt('C', f1) || err != efind(f2))) {
/* unexpected error or wrong error */
len = regerror(err, &re, erbuf, sizeof(erbuf));