summaryrefslogtreecommitdiff
path: root/regex
diff options
context:
space:
mode:
authorbar@bar.mysql.r18.ru <>2003-01-29 17:31:20 +0400
committerbar@bar.mysql.r18.ru <>2003-01-29 17:31:20 +0400
commit735399a850528714ba43b6e7aec84aa9a8878321 (patch)
tree264982c7494f97fc034269d9b20c340299092a4b /regex
parentff3eaaebe742d83aee425a3c6b81c020c16f71cd (diff)
downloadmariadb-git-735399a850528714ba43b6e7aec84aa9a8878321.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));