summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2001-11-07 02:30:34 +0200
committermonty@hundin.mysql.fi <>2001-11-07 02:30:34 +0200
commit30209c1d66ecc01ba38eee03c49e52a59f1148a9 (patch)
tree467eb97b1693dd5b30f6e2b3a1e88241fad6228c /tools
parentf9a321af8a077ea7dc17a7964166738daab6db7e (diff)
downloadmariadb-git-30209c1d66ecc01ba38eee03c49e52a59f1148a9.tar.gz
Portability fix.
Fixed linking problem with InnoDB.
Diffstat (limited to 'tools')
-rw-r--r--tools/mysqlmanager.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/mysqlmanager.c b/tools/mysqlmanager.c
index 5783d151107..c9307bf5d0c 100644
--- a/tools/mysqlmanager.c
+++ b/tools/mysqlmanager.c
@@ -978,7 +978,7 @@ static int authenticate(struct manager_thd* thd)
for (;isspace(*buf) && buf<buf_end;buf++) /* empty */;
my_MD5Init(&context);
- my_MD5Update(&context,buf,(uint)(buf_end-buf));
+ my_MD5Update(&context,(uchar*) buf,(uint)(buf_end-buf));
my_MD5Final(digest,&context);
if (memcmp(u->md5_pass,digest,MD5_LEN))
return 1;
@@ -1218,7 +1218,7 @@ struct manager_thd* manager_thd_new(Vio* vio)
tmp->user[0]=0;
tmp->priv_flags=0;
tmp->fatal=tmp->finished=0;
- tmp->cmd_buf=tmp->net.read_pos;
+ tmp->cmd_buf= (char*) tmp->net.read_pos;
return tmp;
}