aboutsummaryrefslogtreecommitdiff
path: root/src/xz/file_io.h
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2019-06-24 00:40:45 +0300
committerLasse Collin <lasse.collin@tukaani.org>2019-06-24 00:40:45 +0300
commit1d4a904d8fb634bd5a04f7fbdd17d3739f3d8866 (patch)
tree31c82e33184d7bf0e4febf2f191abac8460d6797 /src/xz/file_io.h
parentxz: list.c: Fix some warnings from -Wsign-conversion. (diff)
downloadxz-1d4a904d8fb634bd5a04f7fbdd17d3739f3d8866.tar.xz
xz: Change io_seek_src and io_pread arguments from off_t to uint64_t.
This helps fixing warnings from -Wsign-conversion and makes the code look better too.
Diffstat (limited to 'src/xz/file_io.h')
-rw-r--r--src/xz/file_io.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xz/file_io.h b/src/xz/file_io.h
index 84d5b44d..ff6fb80a 100644
--- a/src/xz/file_io.h
+++ b/src/xz/file_io.h
@@ -139,7 +139,7 @@ extern void io_fix_src_pos(file_pair *pair, size_t rewind_size);
///
/// \return On success, false is returned. On error, error message
/// is printed and true is returned.
-extern bool io_seek_src(file_pair *pair, off_t pos);
+extern bool io_seek_src(file_pair *pair, uint64_t pos);
/// \brief Read from source file from given offset to a buffer
@@ -155,7 +155,7 @@ extern bool io_seek_src(file_pair *pair, off_t pos);
///
/// \return On success, false is returned. On error, error message
/// is printed and true is returned.
-extern bool io_pread(file_pair *pair, io_buf *buf, size_t size, off_t pos);
+extern bool io_pread(file_pair *pair, io_buf *buf, size_t size, uint64_t pos);
/// \brief Writes a buffer to the destination file