1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

Portability fix.

Fixed linking problem with InnoDB.
This commit is contained in:
monty@hundin.mysql.fi
2001-11-07 02:30:34 +02:00
parent f9a321af8a
commit 30209c1d66
10 changed files with 35 additions and 28 deletions

View File

@ -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;
}