1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

Portability fixes + a couple of bug fixes introduced by last push.

This commit is contained in:
monty@hundin.mysql.fi
2001-10-08 23:20:19 +03:00
parent 46a660f450
commit 196f620e90
11 changed files with 48 additions and 140 deletions

View File

@ -759,17 +759,16 @@ mysqld_dump_create_info(THD *thd, TABLE *table, int fd)
convert->convert((char*) packet->ptr(), packet->length());
if (fd < 0)
{
if(my_net_write(&thd->net, (char*)packet->ptr(), packet->length()))
if (my_net_write(&thd->net, (char*)packet->ptr(), packet->length()))
DBUG_RETURN(-1);
VOID(net_flush(&thd->net));
}
else
{
if(my_write(fd, (const byte*) packet->ptr(), packet->length(),
MYF(MY_WME)))
if (my_write(fd, (const byte*) packet->ptr(), packet->length(),
MYF(MY_WME)))
DBUG_RETURN(-1);
}
DBUG_RETURN(0);
}