From 16067d4f903bebc506daa8149f9b15f1f1b4e629 Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Tue, 1 Mar 2016 11:35:26 +0200 Subject: loplugin:unuseddefaultparam in shell Change-Id: Ib14fd4f7f0a23f83801f448aa2c22e550057ec71 --- shell/source/unix/sysshell/recently_used_file.cxx | 4 ++-- shell/source/unix/sysshell/recently_used_file.hxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'shell') 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"; } diff --git a/shell/source/unix/sysshell/recently_used_file.hxx b/shell/source/unix/sysshell/recently_used_file.hxx index 335361b0233d..88ba5d81d515 100644 --- a/shell/source/unix/sysshell/recently_used_file.hxx +++ b/shell/source/unix/sysshell/recently_used_file.hxx @@ -39,7 +39,7 @@ public: void reset() const; - void truncate(off_t length = 0); + void truncate(); size_t read( -- cgit