summaryrefslogtreecommitdiff
path: root/sql/sql_show.cc
diff options
context:
space:
mode:
authormonty@hundin.mysql.fi <>2001-10-08 23:20:19 +0300
committermonty@hundin.mysql.fi <>2001-10-08 23:20:19 +0300
commit196f620e9024b12e33125c4be03c867b0fabbfcc (patch)
treee7d13849a1d92edeaacd31753856f5a8cb389781 /sql/sql_show.cc
parent46a660f450cfb78785838f4dc923eaf6b75c5961 (diff)
downloadmariadb-git-196f620e9024b12e33125c4be03c867b0fabbfcc.tar.gz
Portability fixes + a couple of bug fixes introduced by last push.
Diffstat (limited to 'sql/sql_show.cc')
-rw-r--r--sql/sql_show.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/sql/sql_show.cc b/sql/sql_show.cc
index 438d6b7eed6..5a9777e24a4 100644
--- a/sql/sql_show.cc
+++ b/sql/sql_show.cc
@@ -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);
}