refactor
This commit is contained in:
@ -59,10 +59,10 @@ auto directory_iterator::fill_buffer(const remote::file_offset &offset,
|
||||
if (filler_function(buffer, item_name.data(), pst,
|
||||
static_cast<off_t>(offset + 1),
|
||||
FUSE_FILL_DIR_PLUS) != 0) {
|
||||
#else
|
||||
#else // FUSE_USE_VERSION < 30
|
||||
if (filler_function(buffer, item_name.data(), pst,
|
||||
static_cast<off_t>(offset + 1)) != 0) {
|
||||
#endif
|
||||
#endif // FUSE_USE_VERSION >= 30
|
||||
errno = ENOMEM;
|
||||
return -1;
|
||||
}
|
||||
@ -77,7 +77,7 @@ auto directory_iterator::fill_buffer(const remote::file_offset &offset,
|
||||
errno = 120;
|
||||
return -1;
|
||||
}
|
||||
#endif // !_WIN32
|
||||
#endif // !defined(_WIN32)
|
||||
|
||||
auto directory_iterator::get(std::size_t offset, std::string &item) -> int {
|
||||
if (offset < items_.size()) {
|
||||
|
Reference in New Issue
Block a user