summaryrefslogtreecommitdiff
path: root/mysys/my_sync.c
diff options
context:
space:
mode:
authorunknown <monty@mysql.com>2005-04-06 19:43:35 +0300
committerunknown <monty@mysql.com>2005-04-06 19:43:35 +0300
commit7503894ab5ad6017e6a050ed942c9a60dddddcba (patch)
tree22e52dde149dd54691424a98e931b6247fbca16b /mysys/my_sync.c
parentd958b6361b0423a1730d863f8d8365430b12b0b2 (diff)
downloadmariadb-git-7503894ab5ad6017e6a050ed942c9a60dddddcba.tar.gz
Fixed errors found during review
mysql-test/r/drop.result: Made error message smaller to not get into trouble with clients with smaller error buffers The proper way to fix this is to generate a separate warning for each not found table if there was more than one table in the DROP but mysql-test/r/kill.result: Portablity fix mysql-test/t/kill.test: Portablity fix mysys/my_sync.c: Fixed possible compiler warning sql/records.cc: Fixed possible compiler warning sql/share/errmsg.txt: Made error message smaller to not get into trouble with clients with smaller error buffers sql/sql_class.cc: Don't put code in comments sql/sql_show.cc: Cleanup
Diffstat (limited to 'mysys/my_sync.c')
-rw-r--r--mysys/my_sync.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/my_sync.c b/mysys/my_sync.c
index bfaf09ce402..c557324b52c 100644
--- a/mysys/my_sync.c
+++ b/mysys/my_sync.c
@@ -65,7 +65,7 @@ int my_sync(File fd, myf my_flags)
int er= errno;
if (!(my_errno= er))
my_errno= -1; /* Unknown error */
- if (my_flags & MY_IGNORE_BADFD &&
+ if ((my_flags & MY_IGNORE_BADFD) &&
(er == EBADF || er == EINVAL || er == EROFS))
res= 0;
else if (my_flags & MY_WME)