summaryrefslogtreecommitdiff
path: root/sql/strfunc.cc
diff options
context:
space:
mode:
authorunknown <kostja@bodhi.local>2007-03-27 20:27:58 +0400
committerunknown <kostja@bodhi.local>2007-03-27 20:27:58 +0400
commit66fcdd5403ba20a9f9f760c545fe49a297188f96 (patch)
tree79502174ae5e635dfaa0b061d041bc77080973ac /sql/strfunc.cc
parentd9b8e466bf8258f94ed69a7771d9098d3185fa11 (diff)
downloadmariadb-git-66fcdd5403ba20a9f9f760c545fe49a297188f96.tar.gz
Change find_type family to accept const TYPELIB*.
include/mysql_h.ic: Change find_type family to accept const TYPELIB*. This sort of change can not break the ABI.
Diffstat (limited to 'sql/strfunc.cc')
-rw-r--r--sql/strfunc.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/sql/strfunc.cc b/sql/strfunc.cc
index 71b52a5145d..9ffc5fd127f 100644
--- a/sql/strfunc.cc
+++ b/sql/strfunc.cc
@@ -104,7 +104,8 @@ ulonglong find_set(TYPELIB *lib, const char *str, uint length, CHARSET_INFO *cs,
> 0 position in TYPELIB->type_names +1
*/
-uint find_type(TYPELIB *lib, const char *find, uint length, bool part_match)
+uint find_type(const TYPELIB *lib, const char *find, uint length,
+ bool part_match)
{
uint found_count=0, found_pos=0;
const char *end= find+length;
@@ -144,7 +145,8 @@ uint find_type(TYPELIB *lib, const char *find, uint length, bool part_match)
>0 Offset+1 in typelib for matched string
*/
-uint find_type2(TYPELIB *typelib, const char *x, uint length, CHARSET_INFO *cs)
+uint find_type2(const TYPELIB *typelib, const char *x, uint length,
+ CHARSET_INFO *cs)
{
int pos;
const char *j;