summaryrefslogtreecommitdiff
path: root/storage/connect/mycat.cc
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mnogosearch.org>2013-02-07 16:37:44 +0400
committerAlexander Barkov <bar@mnogosearch.org>2013-02-07 16:37:44 +0400
commit40398f3660273a646eb974092a9ddf6f881d700e (patch)
treec621e0d9c16cee544e71c0aafd044d60b453a353 /storage/connect/mycat.cc
parent8cfa84ca875ac464f5e37be88dc521bb2dd89091 (diff)
downloadmariadb-git-40398f3660273a646eb974092a9ddf6f881d700e.tar.gz
Fixing some of the compilation warnings.
Diffstat (limited to 'storage/connect/mycat.cc')
-rw-r--r--storage/connect/mycat.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/storage/connect/mycat.cc b/storage/connect/mycat.cc
index 706f41780fe..8d7a5cdb682 100644
--- a/storage/connect/mycat.cc
+++ b/storage/connect/mycat.cc
@@ -182,7 +182,7 @@ PQRYRES PlgAllocResult(PGLOBAL g, int ncol, int maxres, int ids,
/* Get a unique char identifier for types. The letter used are: */
/* ABCDEF..I.KLM.O..R.T.VWXY.. */
/***********************************************************************/
-char GetTypeID(char *type)
+char GetTypeID(const char *type)
{
return (!type) ? 'D' // DOS (default)
: (!stricmp(type, "FMT")) ? 'T' // CSV
@@ -569,7 +569,7 @@ PRELDEF MYCAT::MakeTableDesc(PGLOBAL g, LPCSTR name, LPCSTR am)
/* Get a unique char identifier for types. The letter used are: */
/* ABCDEF..IJKLM.OPQRSTUVWXYZ and Allocate table definition class */
/*********************************************************************/
- tc= GetTypeID((char*)am);
+ tc= GetTypeID(am);
switch (tc) {
case 'F':