From 5da4d4e94028cd7bd87cabcf6cd98e59fd414041 Mon Sep 17 00:00:00 2001 From: "Scott E. Graves" Date: Wed, 22 Jan 2025 08:01:35 -0600 Subject: [PATCH] refactor --- repertory/librepertory/src/drives/directory_iterator.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/repertory/librepertory/src/drives/directory_iterator.cpp b/repertory/librepertory/src/drives/directory_iterator.cpp index 45e4466b..cbea61b8 100644 --- a/repertory/librepertory/src/drives/directory_iterator.cpp +++ b/repertory/librepertory/src/drives/directory_iterator.cpp @@ -59,10 +59,10 @@ auto directory_iterator::fill_buffer(const remote::file_offset &offset, if (filler_function(buffer, item_name.data(), pst, static_cast(offset + 1), FUSE_FILL_DIR_PLUS) != 0) { -#else +#else // FUSE_USE_VERSION < 30 if (filler_function(buffer, item_name.data(), pst, static_cast(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()) {