diff options
author | Bjorn Munch <bjorn.munch@oracle.com> | 2010-12-20 12:58:33 +0100 |
---|---|---|
committer | Bjorn Munch <bjorn.munch@oracle.com> | 2010-12-20 12:58:33 +0100 |
commit | de83ad9073154e352201ddae0649bab0fd16689d (patch) | |
tree | 2fe3426f72edd431023880069cd890d273c7f800 /cmd-line-utils/readline/histfile.c | |
parent | 154279419d7bf6f1c7e1a630ed22dc1ba0aad5b6 (diff) | |
parent | 13c6af0eab384632e3cb954e5ba7d7c51d537d4f (diff) | |
download | mariadb-git-de83ad9073154e352201ddae0649bab0fd16689d.tar.gz |
new merge from 5.1
Diffstat (limited to 'cmd-line-utils/readline/histfile.c')
-rw-r--r-- | cmd-line-utils/readline/histfile.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/cmd-line-utils/readline/histfile.c b/cmd-line-utils/readline/histfile.c index cbd367542ce..1a6d69b6684 100644 --- a/cmd-line-utils/readline/histfile.c +++ b/cmd-line-utils/readline/histfile.c @@ -402,6 +402,7 @@ history_truncate_file (fname, lines) if (bp > buffer && ((file = open (filename, O_WRONLY|O_TRUNC|O_BINARY, 0600)) != -1)) { bytes_written= write (file, bp, chars_read - (bp - buffer)); + (void) bytes_written; #if defined (__BEOS__) /* BeOS ignores O_TRUNC. */ |