summaryrefslogtreecommitdiff
path: root/cmd-line-utils
diff options
context:
space:
mode:
authorMichael Widenius <monty@askmonty.org>2011-02-25 20:35:25 +0200
committerMichael Widenius <monty@askmonty.org>2011-02-25 20:35:25 +0200
commit9fe6801a98f8519cb712e124b536ffb695ad1088 (patch)
tree98d1ee22a6e75c982563ae30a749eaabf42be7a0 /cmd-line-utils
parentd46aee702ed79cf536f9fcb1dce68db8ab8b111f (diff)
downloadmariadb-git-9fe6801a98f8519cb712e124b536ffb695ad1088.tar.gz
Fixed compiler warnings
cmd-line-utils/readline/complete.c: Don't ignore value from fwrite() cmd-line-utils/readline/terminal.c: Don't ignore value from fwrite() extra/yassl/taocrypt/include/file.hpp: Changed prototype to be able to return value from fwrite() extra/yassl/taocrypt/src/file.cpp: Return value from fwrite for put() storage/xtradb/ut/ut0ut.c: Added casts to remove warnings for not critical usage of fwrite()
Diffstat (limited to 'cmd-line-utils')
-rw-r--r--cmd-line-utils/readline/complete.c3
-rw-r--r--cmd-line-utils/readline/terminal.c3
2 files changed, 3 insertions, 3 deletions
diff --git a/cmd-line-utils/readline/complete.c b/cmd-line-utils/readline/complete.c
index d11ea2493a6..a51375cd2b7 100644
--- a/cmd-line-utils/readline/complete.c
+++ b/cmd-line-utils/readline/complete.c
@@ -673,8 +673,7 @@ fnprint (to_print)
w = wcwidth (wc);
width = (w >= 0) ? w : 1;
}
- fwrite (s, 1, tlen, rl_outstream);
- s += tlen;
+ s+= fwrite (s, 1, tlen, rl_outstream);
printed_len += width;
#else
putc (*s, rl_outstream);
diff --git a/cmd-line-utils/readline/terminal.c b/cmd-line-utils/readline/terminal.c
index e2785908160..cc30f50cf3c 100644
--- a/cmd-line-utils/readline/terminal.c
+++ b/cmd-line-utils/readline/terminal.c
@@ -621,7 +621,8 @@ _rl_output_some_chars (string, count)
const char *string;
int count;
{
- fwrite (string, 1, count, _rl_out_stream);
+ if (fwrite (string, 1, count, _rl_out_stream) != count)
+ fprintf(stderr, "Write failed\n");
}
/* Move the cursor back. */