Commit 1cff5b9c authored by Sergey Glukhov's avatar Sergey Glukhov

remove compiler warnings

parent 8aff42f6
...@@ -6665,7 +6665,7 @@ void init_re_comp(my_regex_t *re, const char* str) ...@@ -6665,7 +6665,7 @@ void init_re_comp(my_regex_t *re, const char* str)
char erbuf[100]; char erbuf[100];
size_t len= my_regerror(err, re, erbuf, sizeof(erbuf)); size_t len= my_regerror(err, re, erbuf, sizeof(erbuf));
die("error %s, %d/%d `%s'\n", die("error %s, %d/%d `%s'\n",
re_eprint(err), len, (int)sizeof(erbuf), erbuf); re_eprint(err), (int)len, (int)sizeof(erbuf), erbuf);
} }
} }
...@@ -6721,7 +6721,7 @@ int match_re(my_regex_t *re, char *str) ...@@ -6721,7 +6721,7 @@ int match_re(my_regex_t *re, char *str)
char erbuf[100]; char erbuf[100];
size_t len= my_regerror(err, re, erbuf, sizeof(erbuf)); size_t len= my_regerror(err, re, erbuf, sizeof(erbuf));
die("error %s, %d/%d `%s'\n", die("error %s, %d/%d `%s'\n",
re_eprint(err), len, (int)sizeof(erbuf), erbuf); re_eprint(err), (int)len, (int)sizeof(erbuf), erbuf);
} }
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment