summaryrefslogtreecommitdiff
path: root/sal
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2017-03-30 10:33:33 +0200
committerStephan Bergmann <sbergman@redhat.com>2017-03-30 10:33:33 +0200
commitb24644564af045e3607c897422fdb37545b9a089 (patch)
treed302182db423cfa9e91e764dc6763424ae997421 /sal
parent817b026bcb07bc71355d7d0f68d184e66d1b7bd1 (diff)
loplugin:redundantcast
(only triggers on macOS, as on Linux unistd.h declares lseek with a return type of intermediary __off_t/__off64_t typedefs) Change-Id: I967e472a050ad624a6411947b10c962ac8f66bed
Diffstat (limited to 'sal')
-rw-r--r--sal/osl/unx/file.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sal/osl/unx/file.cxx b/sal/osl/unx/file.cxx
index 1d673cdb2f8c..416533a64de1 100644
--- a/sal/osl/unx/file.cxx
+++ b/sal/osl/unx/file.cxx
@@ -319,7 +319,7 @@ oslFileError FileHandle_Impl::setSize (sal_uInt64 uSize)
}
/* Save current position */
- off_t const nCurPos = (off_t)lseek (m_fd, (off_t)0, SEEK_CUR);
+ off_t const nCurPos = lseek (m_fd, (off_t)0, SEEK_CUR);
if (nCurPos == (off_t)(-1))
return result;