summaryrefslogtreecommitdiff
path: root/shell/source/unix/sysshell/recently_used_file.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2016-03-01 11:35:26 +0200
committerNoel Grandin <noel@peralex.com>2016-03-01 12:48:52 +0200
commit16067d4f903bebc506daa8149f9b15f1f1b4e629 (patch)
tree64357d09506709223d8433efeb12e5493cafd16d /shell/source/unix/sysshell/recently_used_file.cxx
parentdef71473d25e88729c644e35523d267c8cd04e57 (diff)
loplugin:unuseddefaultparam in shell
Change-Id: Ib14fd4f7f0a23f83801f448aa2c22e550057ec71
Diffstat (limited to 'shell/source/unix/sysshell/recently_used_file.cxx')
-rw-r--r--shell/source/unix/sysshell/recently_used_file.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/source/unix/sysshell/recently_used_file.cxx b/shell/source/unix/sysshell/recently_used_file.cxx
index 2bf7d7eb30b0..5a9b4643081b 100644
--- a/shell/source/unix/sysshell/recently_used_file.cxx
+++ b/shell/source/unix/sysshell/recently_used_file.cxx
@@ -99,9 +99,9 @@ void recently_used_file::reset() const
}
-void recently_used_file::truncate(off_t length)
+void recently_used_file::truncate()
{
- if (ftruncate(fileno(file_), length) == -1)
+ if (ftruncate(fileno(file_), 0) == -1)
throw "I/O error: ftruncate failed";
}