Address compiler warnings #10
All checks were successful
BlockStorage/repertory_osx/pipeline/head This commit looks good
BlockStorage/repertory_linux_builds/pipeline/head This commit looks good

This commit is contained in:
2023-10-30 12:06:07 -05:00
parent c0e720498d
commit e7413fb741
5 changed files with 7 additions and 9 deletions

View File

@ -606,7 +606,7 @@ auto remote_server::fuse_read(const char *path, char *buffer,
if (res == 0) {
b.resize(read_size);
res = pread64(static_cast<native_handle>(handle), &b[0], read_size,
read_offset);
static_cast<off_t>(read_offset));
}
auto ret = ((res < 0) ? -errno : res);
@ -895,7 +895,7 @@ auto remote_server::fuse_write(const char *path, const char *buffer,
auto res = has_open_info(static_cast<native_handle>(handle), EBADF);
if (res == 0) {
res = pwrite64(static_cast<native_handle>(handle), buffer, write_size,
write_offset);
static_cast<off_t>(write_offset));
}
auto ret = ((res < 0) ? -errno : res);