summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2019-06-26 05:29:44 +0400
committerAlexander Barkov <bar@mariadb.com>2019-06-26 05:29:44 +0400
commit677133f1b3d45dcf72484a2cc9577ad09d8a78fd (patch)
tree07667f606d13950f1699b936c9f1ac6bdae03f5c /include
parent8d4c159b1bfc75fcddc50f740ec9a001aa6d2bc4 (diff)
downloadmariadb-git-677133f1b3d45dcf72484a2cc9577ad09d8a78fd.tar.gz
MDEV-19863 Add const to TYPELIB pointers
Diffstat (limited to 'include')
-rw-r--r--include/mysql.h.pp2
-rw-r--r--include/typelib.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/include/mysql.h.pp b/include/mysql.h.pp
index 1e4479e8f2b..54dc99ab32d 100644
--- a/include/mysql.h.pp
+++ b/include/mysql.h.pp
@@ -256,7 +256,7 @@ extern int find_type_with_warning(const char *x, TYPELIB *typelib,
extern int find_type(const char *x, const TYPELIB *typelib, unsigned int flags);
extern void make_type(char *to,unsigned int nr,TYPELIB *typelib);
extern const char *get_type(TYPELIB *typelib,unsigned int nr);
-extern TYPELIB *copy_typelib(MEM_ROOT *root, TYPELIB *from);
+extern TYPELIB *copy_typelib(MEM_ROOT *root, const TYPELIB *from);
extern TYPELIB sql_protocol_typelib;
my_ulonglong find_set_from_flags(const TYPELIB *lib, unsigned int default_name,
my_ulonglong cur_set, my_ulonglong default_set,
diff --git a/include/typelib.h b/include/typelib.h
index b20724fe05e..23df737d307 100644
--- a/include/typelib.h
+++ b/include/typelib.h
@@ -43,7 +43,7 @@ extern int find_type_with_warning(const char *x, TYPELIB *typelib,
extern int find_type(const char *x, const TYPELIB *typelib, unsigned int flags);
extern void make_type(char *to,unsigned int nr,TYPELIB *typelib);
extern const char *get_type(TYPELIB *typelib,unsigned int nr);
-extern TYPELIB *copy_typelib(MEM_ROOT *root, TYPELIB *from);
+extern TYPELIB *copy_typelib(MEM_ROOT *root, const TYPELIB *from);
extern TYPELIB sql_protocol_typelib;