diff options
author | monty@hundin.mysql.fi <> | 2001-10-08 23:20:19 +0300 |
---|---|---|
committer | monty@hundin.mysql.fi <> | 2001-10-08 23:20:19 +0300 |
commit | 196f620e9024b12e33125c4be03c867b0fabbfcc (patch) | |
tree | e7d13849a1d92edeaacd31753856f5a8cb389781 /sql/sql_show.cc | |
parent | 46a660f450cfb78785838f4dc923eaf6b75c5961 (diff) | |
download | mariadb-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.cc | 7 |
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); } |